Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How I can set a “root” password in MySQL?

MySQL password
0
Posted

How I can set a “root” password in MySQL?

0

With the”XAMPP Shell” (command prompt) you can also change the password. Open the shell and execute this command: mysqladmin.exe -u root password secret Of course, your password should not be “secret”, too. In the next step you must adjust the phpMyAdmin configuration for this new password. In the file “\xampp\phpMyAdmin\config.inc.php” change the lines: $cfg[‘Servers’][$i][‘user’] = ‘root’; $cfg[‘Servers’][$i][‘password’] = ”; to: $cfg[‘Servers’][$i][‘user’] = ‘root’; $cfg[‘Servers’][$i][‘password’] = ‘secret’; Instead in the XAMPP Shell, you can also change the password with phpMyAdmin, and then adjust the phpMyAdmin configuration.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123