你好,我似乎无法连接到我的MySQL服务器时,我得到以下错误无法连接到Mysql服务器;无法创建/写pid文件
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
当我检查了日志,它向我展示了以下内容:
130314 12:36:16 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'plugin' is read only
130314 12:36:16 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
130314 12:36:16 InnoDB: Initializing buffer pool, size = 8.0M
130314 12:36:16 InnoDB: Completed initialization of buffer pool
130314 12:36:16 InnoDB: Started; log sequence number 13 1336891001
130314 12:36:16 [ERROR] /usr/sbin/mysqld: Can't create/write to file '/var/lib/mysql/live.pid' (Errcode: 13)
130314 12:36:16 [ERROR] Can't start server: can't create PID file: Permission denied
请注意,[只有链接的答案](http://meta.stackoverflow.com/tags/link-only-answers/info)不鼓励,所以答案应该是搜索解决方案的终点(与另一个引用的中途停留时间相比,这些引用往往会随着时间推移而变得过时)。请考虑在此添加独立的摘要,并将链接保留为参考。该页面为 – kleopatra 2013-08-15 10:56:09
404。你在说? – 2018-02-01 16:41:10