You can configure your MySQL server to be accessed from a remote server. This can be useful if you would like to keep your database server separate from your web or other servers.
To do this, you will need to grant rights to a MySQL user so that the user has rights to the database from somewhere other than the server where your database is hosted (localhost). Do this by using something like the following:
grant all privileges on *.* to remoteuser@123.123.123.123 identified by "userpassword";
Where:
When done, do not forget to flush the privileges with the command:
flush privileges;
Edit the configuration file:
nano /etc/mysql/my.cnf
By default MySQL only listens to localhost. You will need to comment out the bind-address line in your mysql configuration file:
/etc/init.d/mysql restart
No question on this page and its children.
RSS feed for questions matching this filter (Help)Last modified: 21 Dec 2007 at 09:43 by Ryan Anderson