Error connecting to database [Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)]
2023-09-14 08:57:01 时间
Are you connecting to "localhost" or "127.0.0.1" ? I noticed that when you connect to "localhost" the socket connector is used, but when you connect to "127.0.0.1" the TCP/IP connector is used. You could try using "127.0.0.1" if the socket connector is not enabled/working.
把 localhost 换成 127.0.0.1 就好了, 奇怪了。。。
相关文章
- mysql-介绍、MySQL部署、数据类型、存储引擎
- MySQL数据类型 int(M) 表示什么意思?详解mysql int类型的长度值问题
- 【MySql】mysql 字段个数的限制
- 【MySql】开机自动启动mysql服务
- 用Navicat连接mysql报错:2003-Can't connect to MySql server on '10.100.0.109'(10039)
- Myeclipse连接Mysql数据库时报错:Error while performing database login with the pro driver:unable
- navcat导入mysql.sql出现:2006, 'MySQL server has gone away'
- mysql分享一:运维角度浅谈MySQL数据库优化
- Java通过mysql-connector-java-8.0.11连接MySQL Server 8.0遇到的几个问题
- mysql中的IF表达式
- 【问题解决方案】MySQL安装后无法启动-net start mysql服务名无效
- 连接Mysql提示Can’t connect to local MySQL server through socket的解决方法
- connection to dat Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
- 学习mysql的binlog配置
- Mysql:Error Code 1235,This version of MySQL doesn’t yet support ‘LIMIT & IN/ALL/ANY/SOME 错误解决
- Linux重置Mysql密码_解决MySQL for Linux错误 ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost
- error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
- MySQL面试题——in是否使用【索引】
- 【高可用MySQL解决方案】centos7配置mysql主从复制
- Python:mysql-replication监控MySQL的binlog变动
- mysql事务 mysql事务回滚 MySQL事务死锁 如何解除死锁 资金出入账
- MySQL 可以用localhost 连接,但不能用IP连接的问题,局域网192.168.*.* 无法连接mysql
- 安全测试===Mysql 注入技巧学习 MySQL注入技巧(1)
- MySQL-mysql 8.0.11安装教程 windows
- MySQL错误:Access denied for user ‘root‘@‘%‘ to database ‘dbname‘
- [MySQL] 解决办法: Error: Transaction test error: file /etc/my.cnf from install of mysql-community-server