• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

mysql connection from external host

W

w0uter

Guest
Hi,

I want that a external website can make a connection whit my mysql server. I want this because both websites (on different servers) are using the same database. Can someone tell me how i can fix that the other website can make a connection whit my musql server ?

Greets Wouter
 
In a shell, do this:

$ mysql -u admin -p

[enter admin password]

mysql > grant all on database_name.* to 'remote_user'@'remote_ip' identified by 'remote_user_password';
mysql > flush privileges;
mysql > \q

Et voilá!

Notes:

* refers to "all tables", if you want to give permission for just one table, use database_name.table_name.

"all" can be any specific permission (select, etc..), so you may grant select only to that external IP if you wish.

If you wish to grant access to any external IP, substitute remote_ip with %.
 
Back
Top