Error message:
InnoDB: Unable to lock./ibdata1, error: 11
Solution:
PS-Ef | grep
Mysqld, killing dead processes
Then restart MySQL
---------------------------------------------------------------------------------
Error message:
Error while loading shared libraries: libssl. so.0.9.8:
Solution:
Update dB and OpenSSL
Pacman-s dB, OpenSSL
In this way, the connection library file cannot be found.
---------------------------------------------------------------------------------
Mysqld cannot be started
Error message:
[Root @ philix lib] #/usr/sbin/mysqld 060715 21:16:36 [Error]
Fatal error: Please read "security" section of the Manual to find out how to run
Mysqld as root! 060715 21:16:36 [Error] aborting 060715 21:16:36 [note]
/Usr/sbin/mysqld: shutdown complete
Solution: Add mysqld in/etc/My. conf
User = MySQL
Note: I have encountered this error today. In addition to adding user = MySQL, you can also try/usr/bin/mysqld_safe -- user = MySQL.
And pay attention to the permissions of the MySQL directory.
Bytes ---------------------------------------------------------------------------------------------------------
[Error] fatal error: Can't open and lock privilege tables: Table
Solution
# Mysql_install_db
solve the problem of MySQL "Access denied for user 'root' @ 'localhost'"
my system is ubuntu6.06. When a newly installed MySQL enters the MySQL tool, there is always an error message:
#< br> mysql-uroot-P
enter password:
error 1045 (28000 ): access denied for user
'root' @ 'localhost' (using password:
NO)
use the methods described on the Internet to change the password of the root user:
# mysqladmin-uroot-P password
'newpassword'
enter password:
mysqladmin: connect to server at 'localhost'
failed
err Or: 'Access denied for user' root' @ 'localhost' (using password:
yes) '
now I have found a solution, as follows (test method 3 first. Thank you !):
Method 1:
#/etc/init. d/MySQL stop
#
mysqld_safe -- user = MySQL -- skip-grant-tables -- skip-Networking &
# mysql
-u root mysql
mysql> Update user SET Password = PASSWORD ('newpassword ')
where user = 'root';
mysql> flush privileges;
mysql> quit
#< br>/etc/init. d/MySQL restart
# mysql-uroot-P
enter password:
mysql>
Method 2:
Directly use the username and password provided in the [client] section of the/etc/MySQL/Debian. CNF file:
# MySQL
-Udebian-sys-Maint-P
Enter Password: <enter the password in the [client] section>
Mysql>
Update user SET Password = PASSWORD ('newpassword') where user = 'root ';
Mysql>
Flush privileges;
Mysql> quit
# Mysql-uroot-P
Enter password:
<Enter the new password newpassword>
Mysql>
Method 3:
I have not tested this method, because the default password of my root user has been modified by me. If you have time to test it, let me know the result. Thank you !!
# MySQL
-Uroot-P
Enter password:
<Enter the password provided in [client] in the/etc/MySQL/Debian. CNF File>
At this point, many problems have been solved!