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;

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...