bash已连接的上,但workerbench连不上,提示:
1. Failed to Connect to MySQL at 11.11.11.111:3306 through SSH tunnel at [email protected] with user root 2. Host '11.11.11.111' is not allowed to connect to this MySQL server
解决办法(为什么,我也不知道):
1. 登录mysql,一次执行以下2条语句,
1. CREATE USER 'newuser'@'11.11.11.111' IDENTIFIED BY 'password'; 2. GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'11.11.11.111' WITH GRANT OPTION;
2. 在workerbench面板上,
登录方式为:ssh...
一个登录用户名是服务器的用户(root),
一个刚开放的DB用户(newuser),
然后填上你的公网IP和自己设置的密码,
连接 -----> 成功
标签:jdk1.8,mysql5,11.111,11.11,mysql,root,newuser,workerbench From: https://www.cnblogs.com/beesky520/p/17438481.html