Mysql Workbench on Ubuntu connection Mysql Times the following error:
Reason: View /etc/mysql/mysql.conf.d/mysqld.cnf
# # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind-address = 127.0.0.1
By default only supports local access.
change into:
# # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind-address = 0.0.0.0
Then restart Mysql:
service mysql restart
Then reconnect reported the following error:
Find out the reasons:
Show only localhost access.
Solution: Modify unauthorized remote access
grant all privileges on *.* to 'root'@'%' identified by 'admin123' with grant option; flush privileges;
Representative wildcard%, may be replaced by an IP address.