mysql [ERROR] Can't create IP socket: Permission denied

/***************************************************************************
* mysql [ERROR] Can't create IP socket: Permission denied
* 说明:
* 在嵌入式方面的,这种权限问题还是挺大的,而且有时候还不好找。
*
* 2016-9-27 深圳 南山平山村 曾剑锋
**************************************************************************/ 一、错误现象:
cat /var/mysql/mysql.err
:: mysqld_safe Starting mysqld daemon with databases from /var/mysql
:: [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
:: [Note] Event Scheduler: Loaded events
:: [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.73-log' socket: '/tmp/mysql.sock' port: Source distribution
:: mysqld_safe Starting mysqld daemon with databases from /var/mysql
:: [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
:: [ERROR] Can't create IP socket: Permission denied
:: [ERROR] Aborting :: [Note] /usr/libexec/mysqld: Shutdown complete :: mysqld_safe mysqld from pid file /run/mysql/mysqld.pid ended 二、原因:
应该是mysqld的执行用户是mysql,然后无法使用root权限的内容。 三、解决办法:
cat /etc/my.cnf
......
# The MySQL server
[mysqld]
......
user=root
......
上一篇:jquery 简单弹出层(转)


下一篇:【转】使用keepalived设置虚拟IP示例