CentOS_mysql8.0_错误

#参考资料

CSND:https://blog.csdn.net/y_server/article/details/78781177

博客园:http://www.cnblogs.com/testway/p/9289827.html

 

# support-files/mysql.server start 失败

ERROR! The server quit without updating PID file (/usr/local/mysql/data/VM_0_13_centos.pid).

//重启

shutdown -r

 

#本地连接数据库

Host '58.35.4.90' is not allowed to connect to this MySQL server.

//创建新用户,并授权

create user root2 identified by 'root2';

update user set host='%' where user='root2';

grant all privileges on *.* to 'root2'@'%';

 

SQLSTATE[HY000] [2054] Server sent charset unknown to the client.

//编码不对

vim /etc/my.cnf

[client]
default-character-set=utf8

[mysql]
default-character-set=utf8

[mysqld]
character-set-server = utf8

 

The server requested authentication method unknown to the client.

//验证机制不同

vim /etc/my.cnf

[mysqld]
default_authentication_plugin=mysql_native_password

 

 

 

Starting MySQL. ERROR! The server quit without updating PID file (/usr/local/mysql/data/VM_0_13_centos.pid).

//应该是权限问题

chown -R mysql:mysql /usr/local/mysql

 

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

//创建软连接

ln -s /usr/local/mysql/mysql.sock /tmp/mysql.sock

 

ERROR! MySQL server PID file could not be found!

//重启失败,关闭进程

killall mysqld

 

转载于:https://www.cnblogs.com/higreen/p/9534059.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值