Jump to content

Question

1 answer to this question

Recommended Posts

  • 0
Posted

if you mean that it has no password and you want to set password then go to mysql bin folder, open command line there and then run thing command :

Quote

mysql -h localhost -u root -p

Hit enter, it will ask you for a password just click enter, then run this command :

Quote

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('you password here');

if not work try : 

Quote

ALTER USER 'root'@'localhost' IDENTIFIED BY 'your password here';

if both not work try :

Quote

UPDATE mysql.user SET authentication_string = PASSWORD('your pass word here') WHERE User = 'root' AND Host = 'localhost';

After that to take effect you have to flush privileges with this command

Quote

FLUSH PRIVILEGES;

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..