I have a Mysql instance installed (not as a service) on a WinXP virtual machine (VirtualBox). I installed it from the installer with GUI on the MySql site. Everything works perfectly, but the MySql connection refuses external connections. What are the simplest steps to be able to connect to this MySql instance from outside? I use a user called 'root'...
|
You have to explicitly grant access from external hosts to the user http://dev.mysql.com/doc/refman/5.1/en/adding-users.html it is generally best not to use root externally |
|||
|
|
|
I think the default root user only has access on the local machine. This offers some sort of protection since the 'root' account in many cases has no password by default. Only users who can access the machine can administer as root (by default). You need to create another user who can access MySql remotely. See the Adding Users page for more details on this. It is well explained there. Note that you should be logged into Windows and MySql running.
|
|||
|
|
|
Using @Adam and @codinguser's answers, and assuming that VirtualBox host is 192.168.57.1:
Note:
|
|||
|
|