How do I turn on remote access to MySQL on a Windows machine???

I've got MySQL Server 5.0 installed on a Windows machine.  I remember when I installed it I was given the option to turn on remote connections and I didn't turn it on...thinking when I needed it it'd be very simple to enable.  However, I seem to finding otherwise.

I now need access to this server remotely and I can't for the life of me figure out how to do this.  All I can find is information on SSH to Linux and editing a config file located at this such and such location on Linux.  I can't find anything for Windows, though.

Any information on this would be greatly appreciated.  Thanks!
LVL 11
Andrew AngellCo-Owner / DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve BinkCommented:
Establishing a remote connection to MySQL is pretty transparent.  On the MySQL machine, make sure you have opened port 3306 (the default...use your port number if you selected a different one) in Windows Firewall, and that the port is being forwarded by your router/hardware firewall to that machine.  On the remote machine, simply use your server's IP:port for the connection.  

Inside MySQL, you'll need to set up the user permissions to allow access from a remote address.  If you're unfamiliar with MySQL user security, make sure you read these sections in the manual:

http://dev.mysql.com/doc/refman/5.0/en/privilege-system.html
http://dev.mysql.com/doc/refman/5.0/en/user-account-management.html
0
Andrew AngellCo-Owner / DeveloperAuthor Commented:
the ports and all of that I understand.  I've actually done this a bunch of times and I usually select the check box during MySQL installation to allow remote connections.  This one time I didn't and now I'm just trying to find a place that I can check that back on.  MySQL has no front-end, though, so that's where I'm stumped.

I am using Navicat MySQL but I don't see any options in here for enabling remote connections either.  when I go into Manage Users I see lots of check boxes but nothing about remote connections.  also, they're all checked.  
0
Steve BinkCommented:
I don't know of any checkbox for remote connections, but I've only used MySQL on nix.  AFAIK, there's no special switch to allow for remote connections, but only configuration items to set it up.

What error are you receiving when you try to connect?
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

ina_donCommented:
You only need to enable your firewall and then create a user who has access from a remote machine.
To do this
open a command prompt;
go to the bin folder of your mysql installation. (Since you say you don't have a front end);
type mysql -u <username> -p [press enter]
enter password [press enter]
then to create the user (even for a user that already exists)
type -> grant all privileges on <databasename>.<object> to username@% identified by '<password>'; [press enter] (username@% means the selected username from any machine. normally a user will be created with username@localhost; databasename and object can be replaced with wildcards ie *.*)
type -> flush privileges; [press enter]
type -> logout or quit [press enter]
try logging on from a remote computer with the username that you used with the set password.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Andrew AngellCo-Owner / DeveloperAuthor Commented:
ina_don,

thanks for these instructions.  I do have Navicat that I can use but I don't see anything in its user configuration about remote connections.  Do you use Navicat?  Am I just not seeing it?
0
ina_donCommented:
you should be able to do this in navicat...

Just download the Mentat Turbo Manager Free Edition or get SQLYog (http://www.webyog.com/en/) the interface should be easier. When you are creating a user just make sure where it says host (or new host when you are editing an existing user) you put % instead of localhost.

I've used Navicat before but I don't have it anymore so I don't remember what the interface looks like.
0
dearvjkumarCommented:
login to the mysql in windows, and grand permission to some user like... grant usage on *.* to 'root@'remote linux IP' identify ('pass')

now try from linux machine (should have mysql client installed), eg. mysql -uroot -p -h<windows mysql IP> -Pport

It should connect..
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.