Technical
How To Set Up Remote Access On Mysql
To access mysql remotely you need to do the following:
- Create user which is allowed to be used outside of the localhost
grant all on db_dev.* to 'monozub'@'%' identified by '';
- Change my.cnf (on ubuntu it’s located in /etc/mysql) settings for bind-address to include remote ip
- bind-address = localhost
+ bind-address = 0.0.0.0
NOTE: this case above will accept connection from ANY ip address.
ALSO: if you specify remote address rather then localhost root will be
able to access machine in any way regardless.
- Don’t forget to restart ( sudo /etc/init.d/mysql restart )
Created on January 20, 2009 13:57:51
by
Gregory Bluvshteyn
(169.130.4.18)
(655 characters / 0.0 pages)