ERROR 2003 (HY000): Can't connect to MySQL server on '10.16.115.101' (111)
2015-08-06 18:05
731 查看
ubuntu安装之后mysql,使用apt-get安装命令,默认为同意只本地访问
root@idata1:~/software# mysql -uroot -p123456 -h10.16.115.101 -P3306
ERROR 2003 (HY000): Can't connect to MySQL server on '10.16.115.101' (111)
默认配置文件:
须要把bind-address凝视掉
重新启动mysql服务
root@idata1:~/software# service mysql restart
mysql stop/waiting
mysql start/running, process 6738
測试连接
root@idata1:~/software# mysql -uroot -p123456 -h10.16.115.101 -P3306
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 141
Server version: 5.5.40-0ubuntu0.12.04.1 (Ubuntu)
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit
Bye
root@idata1:~/software# mysql -uroot -p123456 -h10.16.115.101 -P3306
ERROR 2003 (HY000): Can't connect to MySQL server on '10.16.115.101' (111)
默认配置文件:
须要把bind-address凝视掉
重新启动mysql服务
root@idata1:~/software# service mysql restart
mysql stop/waiting
mysql start/running, process 6738
測试连接
root@idata1:~/software# mysql -uroot -p123456 -h10.16.115.101 -P3306
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 141
Server version: 5.5.40-0ubuntu0.12.04.1 (Ubuntu)
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit
Bye
相关文章推荐
- mysql left right inner join的用法
- LVS+keepalived+DRBD+heartbeat+mysql
- 脚本实现mysql周完全备份所有库
- 常用MySQL命令
- mysql导入excel数据
- Mysql中DATE_SUB 使用方法结合查询一天内,一周内,一月内的信息实例讲解
- the user specified as a definer('root'@'%') does not exit解决办法
- hibernate连接mysql自动重连
- hive count 记录数比mysql值少了
- mysql 访问某个分区
- MySQL文件结构
- MySQL文件结构
- MySQL文件结构
- SQL Server数据迁移到MySQL
- placeholder <>'' a?b:c mysqli
- mysql like语句
- mysql 数据备份与还原
- mysql指令
- MYSQL里的函数
- mysql 判断指定条件数据存不存在,不存在则插入