![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
多敗筆
事在人为,莫道万般皆是命;境由心造,退后一步自然宽
展开
-
Mysql初始化mysql_secure_installation
初始化mysql可以使用mysql_secure_installationMysql 安装dnf install mysql-server*Mysql 启动systemctl start mysqld#设置自启动systemctl enable mysqld初始化Mysqlmysql_secure_installation原创 2020-10-21 10:46:52 · 3177 阅读 · 0 评论 -
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (
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:systemctl start mysqld醉了^-^溜了...原创 2020-10-13 11:09:52 · 158 阅读 · 0 评论 -
--initialize specified but the data directory has files in it. Aborting.
mysql初始化失败,报错如下:2020-10-13T02:25:14.883062Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.2020-10-13T02:25:14.883092Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ i原创 2020-10-13 11:06:38 · 3338 阅读 · 0 评论