首页 > 代码库 > mysql [ERROR] Can't create IP socket: Permission denied
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 700101 00:01:09 mysqld_safe Starting mysqld daemon with databases from /var/mysql 700101 0:01:09 [Warning] ‘--skip-locking‘ is deprecated and will be removed in a future release. Please use ‘--skip-external-locking‘ instead. 700101 0:01:09 [Note] Event Scheduler: Loaded 0 events 700101 0:01:09 [Note] /usr/libexec/mysqld: ready for connections. Version: ‘5.1.73-log‘ socket: ‘/tmp/mysql.sock‘ port: 3306 Source distribution 000101 00:06:42 mysqld_safe Starting mysqld daemon with databases from /var/mysql 000101 0:06:42 [Warning] ‘--skip-locking‘ is deprecated and will be removed in a future release. Please use ‘--skip-external-locking‘ instead. 000101 0:06:42 [ERROR] Can‘t create IP socket: Permission denied 000101 0:06:42 [ERROR] Aborting 000101 0:06:42 [Note] /usr/libexec/mysqld: Shutdown complete 000101 00:06:42 mysqld_safe mysqld from pid file /run/mysql/mysqld.pid ended二、原因: 应该是mysqld的执行用户是mysql,然后无法使用root权限的内容。三、解决办法: cat /etc/my.cnf ...... # The MySQL server [mysqld] ...... user=root ......
mysql [ERROR] Can't create IP socket: Permission denied
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。