1.下载解压
2.
[root@centos6 bin]# ./mysqld
./mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory
解决:
[root@centos6 bin]# yum -y install numactl
3.
Can't find error-message file '/usr/local/mysql/share/errmsg.sys'
解决:
[mysqld]
language = /usr/local/software/mysql-5.7/share/english
4.
Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn'
解决:
./mysqld --initialize --user=mysql
5.
Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/centos6.pid).
解决:
把mysql进程杀掉重启, 或者查看日志,排查具体的报错
6.
Your password has expired. To log in you must change it using a client that supports expired passwords.
解决:
临时密码不能用了
./mysqladmin -uroot -p password
用临时密码修改下密码
7.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
解决
my.cnf
[client]
socket = /tmp/mysql.sock
./mysql.server start