由他 - Mysql
type: channel
link: http://758258.xyz/index.php/tag/Mysql/
items: ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock
items: Mysql初始化mysql_secure_installation

ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock
type: item
date: 2020-11-04T11:20:00+08:00
description: mysql -uroot -p登陆不上，报错：Enter password:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)[...]

Mysql初始化mysql_secure_installation
type: item
date: 2020-11-04T10:41:00+08:00
description: 初始化mysql可以使用mysql_secure_installationMysql 安装dnf install mysql-server*Mysql 启动systemctl start mysqld #设置自启动 systemctl enable mysqld[...]