Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Remote login to mysql with error 1045
I have set up mysql remote login through a tutorial here. It was working for a while. And it suddenly stops working.
bound to 0.0.0.0
root@ubuntu20:~# netstat -plant | grep 3306
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1026/mysqld
tcp6 0 0 :::33060 :::* LISTEN 1026/mysqld
root@ubuntu20:~# ufw status
To Action From
3306/tcp ALLOW Anywhere
I can log in locally with the remote user, dev.
mysql> SELECT User, Host FROM mysql.user;
| User | Host |
| dev | % |
When I try to remote login with the same user, I get error 1045.
What is the problem? I didn’t do anything to the server. It just stops working.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×