解决archlinux(manjaro)无法启动mysql(mariaDB):ERROR 2002 (HY000): Can’t connect to local MySQL server throu

  • Post author:
  • Post category:linux


问题描述:在终端中输入

mysql

出现:

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/run/mysqld/mysqld.sock’ (2 “No such file or directory”)



根据错误提示知道是没有启动mysql服务器,于是立马在终端中输入

mysqld

命令启动mysql服务器,然而又在次报错:


2017-05-31 10:54:51 139998512155840 [Note] mysqld (mysqld 10.1.23-MariaDB) starting as process 3154 …


2017-05-31 10:54:51 139998512155840 [Warning] Can’t create test file /var/lib/mysql/zihao-pc.lower-test



版权声明:本文为XingYuan8023原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。