|
 |
|
 |
04-27-2004, 06:20 PM
|
#1 (permalink)
|
|
Registered User
Join Date: Apr 2004
Posts: 26
|
Access denied for user: '@192.168.0.71' (Using password: NO)
I tried to connect to my mysql server from a win client and the following error appeared:
c:\mysql -h 192.168.0.2 -u sqluser -p
Where:
192.168.0.2 MY MYSQL SERVER
192.168.0.71 MY CLIENT PC
/var/log/mysql.err
61 Quit
62 Connect sqluser@localhost on vmail
62 Query SELECT quota FROM users WHERE id ='sqluserl' AND mbox_host='domain.com'
62 Query SELECT CONCAT(home, "/Maildir/") FROM users WHERE id='sqluser' AND mbox_host='domain.com'
62 Quit
040427 15:43:52 63 Connect Access denied for user: '@192.168.0.71' (Using password: NO)
040427 15:43:55 64 Connect Access denied for user: '@192.168.0.71' (Using password: NO)
040427 15:44:00 65 Connect Access denied for user: '@192.168.0.71' (Using password: NO)
040427 15:44:07 66 Connect Access denied for user: '@192.168.0.71' (Using password: NO)
040427 15:44:14 67 Connect Access denied for user: '@192.168.0.71' (Using password: NO)
I have provided the following privileges:
GRANT ALL PRIVILIGES ON mysqldb.* TO 'sqluser'@'localhost' IDENTIFIED BY 'passwd'
Also I tried something like this:
GRANT ALL PRIVILIGES ON mysqldb.* TO 'sqluser'@'localhost' IDENTIFIED BY 'passwd WITH GRANT OPTION; GRANT ALL PRIVILEGES ON mysqldb.* TO sqluser@192.168.0.17 IDENTIFIED BY 'password' WITH GRANT OPTION; FLUSH PRIVILEGES;
How can I fix the problem?
Hope you can help me Iam stuck for many weeks now.
Thanks and more power.
|
|
|
04-27-2004, 06:54 PM
|
#2 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,475
|
well, .. if you're not worried too much about security, .. then you can open it up by logging in as the mysql root on the server and typing this:
Code:
GRANT ALL PRIVILEGES ON *.* TO sqluser@'%' IDENTIFIED BY 'passwd'
your syntax to login from the windows client looks correct:
Code:
cd c:\mysql\bin
mysql -usqluser -h192.168.0.2 -p
password: passwd
that should do it.
__________________
Mike
|
|
|
04-27-2004, 06:59 PM
|
#3 (permalink)
|
|
Registered User
Join Date: Apr 2004
Posts: 26
|
Quote:
Originally posted by sde
well, .. if you're not worried too much about security, .. then you can open it up by logging in as the mysql root on the server and typing this:
Code:
GRANT ALL PRIVILEGES ON *.* TO sqluser@'%' IDENTIFIED BY 'passwd'
your syntax to login from the windows client looks correct:
Code:
cd c:\mysql\bin
mysql -usqluser -h192.168.0.2 -p
password: passwd
that should do it.
|
Thank you for you speedy reply. However, I intend to use mysql over the internet also. So, i probably use my external ip for that matter.
Hope youll reconsider my request.
Thanks and more power.
|
|
|
04-27-2004, 07:11 PM
|
#4 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,475
|
ok .. well then why don't you give us a good example of your network.
as i see it, .. you have a server, and a windows client both behind a firewall?
even if this is so, then my first bit of code would allow any requests comming into the server to be accepted , so long as you hav the correct user and pass.
what you must consider is that if you are going in from outside your network, you will need to setup port forwarding on your router.
mysql runs on port 3306 i think .. so you will need to forward incoming requests from port 3306, to your internal ip of the server .. i think it is 192.168.0.2
now my second bit of code will work from anywhere, .. but yes, if you are outside your network, you will need to use your external ip.
__________________
Mike
|
|
|
04-27-2004, 08:42 PM
|
#5 (permalink)
|
|
Senior Contributor
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
|
Hmm, this thread looks very familiar...
|
|
|
04-27-2004, 09:07 PM
|
#6 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,475
|
huh?
q
__________________
Mike
|
|
|
04-27-2004, 09:10 PM
|
#7 (permalink)
|
|
Registered User
Join Date: Apr 2004
Posts: 26
|
Quote:
Originally posted by sde
[b]ok .. well then why don't you give us a good example of your network.
as i see it, .. you have a server, and a windows client both behind a firewall?
|
Yes, you're right my problem came from the firewall.
Thanks and more power.
|
|
|
04-27-2004, 11:18 PM
|
#9 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,475
|
heh thanks redhead .. our very own code enwbie sherlock 
__________________
Mike
|
|
|
04-27-2004, 11:24 PM
|
#10 (permalink)
|
|
Registered User
Join Date: Apr 2004
Posts: 26
|
Quote:
Originally posted by sde
heh thanks redhead .. our very own code enwbie sherlock
|
I am sorry  Hope I didn't offended anyone for that matter.
Just looking for a forum that can address my problem more promptly.
Thanks and more power to you all.
|
|
|
04-28-2004, 05:09 AM
|
#11 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,475
|
hey not at all .. that's what this site's here for.
__________________
Mike
|
|
|
04-28-2004, 05:30 PM
|
#12 (permalink)
|
|
Senior Contributor
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
|
Ha! Thanks for the link redhead, I saw the same one on another site altogether...
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -8. The time now is 10:40 PM.
|
Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
|
 |
|