set password for root@localhost=password('your password');
Obviously, you should replace your password with whatever you would like the root password to be.
Log out (\q) and then log back in. This time, you need to log in like this:
mysql -u root -p
MySQL then prompts you for your password. The -u means username, and the -p means log in with password.
No comments:
Post a Comment