Question
Opening MySql on my Wordpress site to Remote Access
Hi,
I’ve been searching the net for the last few hours on the issue and tried almost everything I saw, but with no avail.
I created a wordpress site in DO using “OpenLiteSpeed WordPress 5.3 on Ubuntu 18.04” the one click option and I wanted to connect to the MySql db remotely. I want to create external windows app and fetch data from the database. I tested it by attempting to connect through my Navicat app (mysql interface) and telnet ip 3306, but connection failed.
As of the moment, here is what I have tried.
Adding ufw allowing 3306 port, and then ufw enable. After hitting ufw status verbose, it shows that the port is already allowed.
Adding Listeners to port 3306 in the OpenLiteSpeed portal.
Running scripts in the phpmyadmin to GRANT ALLOW ALL PRIVILEGES the root user, and my custom user.
Creating user to my phpmyadmin and allowing GRANT access to database.
After these, my results are:
telnet to ip:port show Connection Failed.
Unable to access through my navicat interface. (Also tried, Mysql Workbench).
Any help or any topics they can point me to is much appreciated.
Thanks
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.
×