mysql错误|mysql错误 '/var/lib/mysql/mysql.sock'无法连接数据库
[root@localhost ~]# mysql -uroot -p123
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
【mysql错误|mysql错误 '/var/lib/mysql/mysql.sock'无法连接数据库】解决方法:
[root@localhost ~]# mysql -h 127.0.0.1 -uroot -p123
Welcome to the MariaDB monitor.Commands end with ;
or \g.
Your MySQL connection id is 2
Server version: 5.7.24 Source distributionCopyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.Type 'help;
' or '\h' for help. Type '\c' to clear the current input statement.MySQL [(none)]> quit;
Bye
推荐阅读
- 唱歌教学(导致嗓音损坏的几个常见的错误唱歌方法!)
- 调取接口时报404错误(ID:16)
- py连接mysql
- 2019-01-18Mysql中主机名的问题
- MySql数据库备份与恢复
- mysql|InnoDB数据页结构
- 接口|axios接口报错-参数类型错误解决
- mysql中视图事务索引与权限管理
- MYSQL主从同步的实现
- MySQL数据库的基本操作