: Can’t connect to local mysql server through socket ‘/tmp/mysql.sock’ 博客分类: linux mysqlsockhostlinux
程序员文章站
2024-03-23 16:02:58
...
配置mysql多实例3307、3308端口。很明显我在my.cnf已经配置了sock文件呀,怎么还找/tmp/mysql.sock呢,我把my.cnf中改成mysql.sock。结果进去了,可是用3307、3308都是进一个数据库。百思不得其解,后来得知要指定一下host, 本机当然是127.0.0.1。 mysql -h 127.0.0.1 -P 3307 -u root 这下子可以了。而且进入不同的数据库。终于解决了
上一篇: Sybase ASE default/log/tempdb space 博客分类: Database Sybase
下一篇: 数据库索引创建规则 博客分类: orale,db2,mysql等各种数据库创建索引 OracleSQL ServerSybase
推荐阅读
-
: Can’t connect to local mysql server through socket ‘/tmp/mysql.sock’ 博客分类: linux mysqlsockhostlinux
-
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ (2)已解决
-
Linux登录MySQL时出现 Can't connect to local MySQL server through socket '/tmp/mysql.sock'解决方法
-
Linux登录MySQL时出现 Can't connect to local MySQL server through socket '/tmp/mysql.sock'解决方法
-
linux安装MySQL后输入mysql显示 ERROR 2002 (HY000): Can't connect to local MySQL server through socket
-
mac下安装mysql报Can't connect to local MySQL server through socket '/tmp/mysql.sock' brew
-
提示: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)已解决
-
提示: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'