ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/data/mysql/data/mysql.sock'
来源:互联网 发布:js replace undefined 编辑:程序博客网 时间:2024/05/03 01:22
安装完mysql后,type mysql,出现error “ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/data/mysql/data/mysql.sock'”
使用命令service mysqld start,出现error “MySQL Daemon failed to start.”
出现上面错误应该是SELINUX的权限限制了。
先查看当前配置信息.
# getenforce
Enforcing
就表明SELinux已经启用.只需要关闭即可。
关闭方法:
#setenforce 0 (0|1 关|开)
提示信心“Starting mysqld: [ OK ]”,成功解决。
0 0
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/data/mysql/data/mysql.sock'
- Mysql error 2002 (HY000) : Can't connect to local MySQL server through socket '/tmp/mysql.sock'
- mysql error 2002 (HY000) : Can't connect to local MySQL server through socket '/tmp/mysql.sock'
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/mysql/mysql.sock' (2)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
- ERROR 2002 (HY000): Can't Connect to Local MySQL Server Through Socket '/tmp/mysql.sock'
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- YII CListView获取索引
- awk字符串截取
- Linux设备模型 (1)(转载)
- 关于HFM配置遇到的问题
- IOS批量处理图片与视频
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/data/mysql/data/mysql.sock'
- svn设置锁为锁定不能编辑
- Deformable Part Model的学习
- 运算符比较
- Android复习练习九(SQLite使用API方式查询)
- jeewx 捷微-微信管家 myeclipse版本整合
- 游标是否一次取出所有记录
- Linux设备模型 (2)
- 最优化之无约束优化