LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-04-2010, 10:22 PM   #1
cheesewizz
Member
 
Registered: Aug 2004
Location: Philippines
Distribution: Centos
Posts: 221

Rep: Reputation: 15
Host is not allowed to connect ti this MySQL Server


Hi All

Does anyone knows how to fix problem about database connection

I have a mysql server running on this IP 192.168.1.10
then i installed phpmyadmin as web interface

now one of my pc client tried to connection using MySQL Connector/ODBC

when he tried to test the error was appeared on the screen


Connection Failed: [MySQL][ODBC 5.1 Driver]Host'192.168.1.10' is not allowed to connect this MySQL Server



please need help

Thanks
 
Old 11-04-2010, 10:26 PM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
What user does your client use to connect? Did you grant privileges for that host?
Code:
mysql> select user, host from mysql.user;

Last edited by quanta; 11-05-2010 at 09:50 AM.
 
Old 11-05-2010, 04:21 AM   #3
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Just to add some clarification on Quanta's statement as I went round and round on this same issue for quite a while. The missing piece, for me, was to realize that MySQL authenticates not just the user but the user and the host. If you log in locally and look at the user table you will see this. For example, you will have root@localhost. You can specify the host that the user is allowed to log in from or you can wild card it with a % character.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Host is not allowed to connect to this MySQL server lothario Linux - Software 1 07-08-2006 08:14 AM
not allowed to connect to mysql server on another machine dsids Linux - Newbie 2 05-26-2006 03:36 PM
ERROR 1130: Host 'testserver' is not allowed to connect to this MySQL server ddaas Linux - Software 1 04-07-2005 12:00 PM
Host XXX.XXX.XXX.XXX is not allowed to connect to this MySQL server ocavid Linux - Newbie 2 03-16-2005 09:40 AM
MySQL - Host not allowed TBomb Linux - Software 4 09-18-2004 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration