first, log in to MySQL command line, create database times wrong
ERROR 1044 (42000): Access denied for user "@ ' localhost ' to database ' Xiaoluo '
Finally found that because the user table of the MySQL database, there is a username is empty account is anonymous account, resulting in the log in when the use of root, but the actual anonymous login, through the error message "@" localhost can be seen,
Solution See method:
method One:
1. Turn off MySQL
# service Mysqld Stop
2. Blocking Permissions
# Mysqld_safe--skip-grant-table
screen appears: Starting demo from ... ..
3. Start a new terminal input
# mysql-u Root MySQL
mysql> UPDATE user SET Password=password (' NewPassword ') where user= ' root ';
mysql> FLUSH privileges;//Remember to say this, otherwise if you close the previous terminal, the original error will appear
mysql> \q
Method Two:
1. Turn off MySQL
# service Mysqld Stop
2. Blocking Permissions
# Mysqld_safe--skip-grant-table
screen appears: Starting demo from ... ..
3. Start a new terminal input
# mysql-u Root MySQL
mysql> Delete from user where user= ';
mysql> FLUSH privileges;//Remember to say this, otherwise if you close the previous terminal, the original error will appear
mysql> \q
mysql-Problems Creating libraries