I can’t seem to tunnel into MySQL from a remote MySQL Client. I think the newer 1-Click LAMP has some changes to it.
I’m SSH’ing in correctly but getting a:
1698 - Access denied for user 'root'@'localhost'
I’ve changed /etc/mysql/mysql.conf.d/mysqld.cnf:
bind-address = ::
Restarted MySQL daemon.
I’m not sure what to do on-and-above that. I’ve gone through the guides I’ve found on here, but this seems way harder than it needs to be. Any help would be appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @j2adbd54a1f67ab82ceb67bd02,
There are a few things that need to be done prior to being able to perform an SSH tunnel.
Please try to do the following things :
If this doesn’t help, you’ll need to start looking into the logs of the server to see why the connection has been refused. The mentioned information, can be seen in the log file
Regards, KDSys
use mysql;
UPDATE user SET plugin='mysql_native_password' WHERE User='root';
FLUSH PRIVILEGES;
exit;
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.