Reputation: 35434
Installing XAMPP will set password for MySQL as blank as default.
Going for password
in my.ini
file doesn't work.
How can we set password for it?
Upvotes: 1
Views: 201
Reputation: 30131
You should be able to change the password through the webinterface, try going to: http://localhost/security/
, another way would be to run the following query from mysql:
UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root';
FLUSH PRIVILEGES;
Upvotes: 2
Reputation: 651
Try this it may help you with your issue and offers 2 methods.
http://veerasundar.com/blog/2009/01/how-to-change-the-root-password-for-mysql-in-xampp/
Upvotes: 2