Solved

MySql remote connection error 2003

Posted on 2008-10-02
11
550 Views
Last Modified: 2013-12-05
Hi
i have a client system installed with
MS Windows xp and the ip address of it (i made static also ) as 192.168.1.29

and my server has
MS Windwos 2000 and its ip address is 192.168.1.10
I have installed MySql5.0 latest version on the server and was trying to connect from the client and i was getting this error
" cant connect to mysql server on 192.168.1.10 "

so i have referred to lots of material and many of the similar questions in this forums and in one the solutions ,it was advised to use the below
GRANT ALL
    ON *.*
    TO root@'%' identified by 'password';

and i have tried this and no use.
so i went ahead and also created a user with
user - root
Hostname - 192.168.1.29
password - password

and when i try to connect from the remote client,still the same issue.
please suggest how to go about as this is very important
0
Comment
Question by:darien_software
  • 7
  • 4
11 Comments
 
LVL 12

Accepted Solution

by:
rionroc earned 500 total points
ID: 22625044
Hello

Grant again with no password for testing.

GRANT ALL ON *.* TO root@'%'


OR

simply apply:
FLUSH PRIVILEGES;
after granting to any user.


Great is our GOD.
:)
0
 

Author Comment

by:darien_software
ID: 22631257
hi rion
thanks for the reply
i have done what u have told but still no respite..

anyother way around??
0
 
LVL 12

Expert Comment

by:rionroc
ID: 22631730
OK

Just be sure where you set the GRANT and FLUSH PRIVILEGES, either to your localhost(1.10) computer or to your server(1.29)



Great is our GOD.
:)
0
 

Author Comment

by:darien_software
ID: 22632293
hi rion
well the server is (1,10) and local host is (1,29)
well i have given Grant and Flush privileges on the Server(1,10) and i am trying to access this MySql database from a client which is the local host(1,29)..
so even after entering these details,i am having the same problem
please guide

0
 

Author Comment

by:darien_software
ID: 22632313

hi rion
well the server is (1,10) and local host is (1,29)
well i have given Grant and Flush privileges on the Server(1,10) and i am trying to access this MySql database from a client which is the local host(1,29)..
so even after entering these details,i am having the same problem
please guide
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

Author Comment

by:darien_software
ID: 22632580
should i also do the same thing on the client machine also?
0
 

Author Comment

by:darien_software
ID: 22632676
well i have run the instructions on the client machine also.But whatever i did with the resources.still getting the same error.
connecting from client to server and also tried from server to client
no respite.
0
 
LVL 12

Expert Comment

by:rionroc
ID: 22633370
>>should i also do the same thing on the client machine also?
No

Just want to ask this:
Are you trying to develop a database program?
Or just connecting via MySql query browser?




0
 

Author Comment

by:darien_software
ID: 22634301
hi rion
thanks for ur feedback
well i have used the grant command which was ending "with grant option " and it worked
well i have also diabled all my firewalls(default and installed) and it worked
well now i configured my firewall so i am able to connect on 2 way basis
and also
i guess i need MySql on the client machine to be installed for it to conenct to the server ..

well my suggestions to ones have this problem
1.As the above replies says
         use grant command with root@% or ip address to grant privileges
2.check your firewalls,thats important.What we dont guess will stop,will be blocking the connectivity.
3.Have MySQL also installed on client machine even though we are accessing the database on the server

with these options i guess this error will be solved

thanks rion for your help
0
 

Author Comment

by:darien_software
ID: 22634357
will be helpful for everyone
0
 
LVL 12

Expert Comment

by:rionroc
ID: 22635824
Hmp!

I though windows firewall excluded mysql already and I though you already did.

Anyway thanks.


Great is our GOD.
:)
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now