The site is located on the VPS, the base is very large 1GB, MySQL MariaDB is deployed on the terminal server, how can I connect the database to the site now?

The network to connect has one IP. I understand that you need to specify instead of localhost - IP: 3306, but there is no connection. I read that you can open MySQL on the Internet for a specific IP, but how to do it, there are no instructions.

How to connect to MySQL site linked?

  • Comments are not intended for extended discussion; conversation moved to chat . - Yuriy SPb 10:17 pm

1 answer 1

The solution came out like this: - you need to do port forwarding on the router (similar to rdp), and also comment out or delete the line bind-address = 0.0.0.0 in the MariaDB settings.

  • Strange, this line seems to be the other way around - andreymal