Some problems during mysql installation: bitsCN.com
Some problems during mysql installation
The problem is as follows:
/Usr/bin/mysql_secure_installation
NOTE: running all parts of this script is recommended for all MySQL
Servers in production use! Please read each step carefully!
In order to log into MySQL to secure it, we'll need the current
Password for the root user. If you 've just installed MySQL, and
You haven't set the root password yet, the password will be blank,
So you shoshould just press enter here.
Enter current password for root (enter for none ):
ERROR 1820 (HY000): You must set password before executing this statement
Solution:
Log on to mysql
If you cannot log on to mysql, you can add skip-grant-tables in my. cnf; skip verification, log on to mysql, and reset the password.
Set password = password ('20140901 ');
Then run
/Usr/bin/mysql_secure_installation
Set security.
Work done
BitsCN.com