Ubuntu installed after MySQL, using the apt-get Install command, default to consent only local access
[Email protected]:~/software# mysql-uroot-p123456-h10.16.115.101-p3306
ERROR 2003 (HY000): Can ' t connect to MySQL server on ' 10.16.115.101 ' (111)
Default configuration file:
Need to stare bind-address out
Restarting the MySQL service
[Email protected]:~/software# service MySQL Restart
MySQL stop/waiting
MySQL start/running, process 6738
Test connection
[Email protected]:~/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), the Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of the Oracle Corporation and/or its
Affiliates. Other names trademarks of their respective
Owners.
Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current input statement.
Mysql> exit
Bye
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
ERROR 2003 (HY000): can& #39; t connect to MySQL Server on & #39;10.16.115.101& #39; (111)