LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-19-2005, 04:44 AM   #1
raduciora
LQ Newbie
 
Registered: Jul 2005
Location: Romania
Distribution: Suse, Mandriva, Fedora
Posts: 3

Rep: Reputation: 0
host not allowed to connect to this mysql server


I have installed SUSE 9.2 Professional with MySQL version 4.0.21. I start the MySQL server at sistem start. I try to connect to the server from 3 computers within the same network. The clients run Windows 2000 Professional SP4. From one of them the connection runs O.K., but from the other I can't estabish a connection, not even through telnet. The result returned by the telnet query 'telnet Linux 3306' is:
Host 'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL server
Connection to host lost.

Last edited by raduciora; 07-19-2005 at 06:36 AM.
 
Old 07-19-2005, 06:40 AM   #2
raduciora
LQ Newbie
 
Registered: Jul 2005
Location: Romania
Distribution: Suse, Mandriva, Fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Host is not allowed to connect to this MySQL server

I have installed SUSE 9.2 Professional with MySQL version 4.0.21. I start the MySQL server at sistem start. I try to connect to the server from 3 computers within the same network. The clients run Windows 2000 Professional SP4. From one of them the connection runs O.K., but from the others I can't estabish a connection, not even through telnet. The result returned by the telnet query 'telnet Linux 3306' is:
Host 'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL server
Connection to host lost.
 
Old 07-19-2005, 02:13 PM   #3
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,487

Rep: Reputation: 88
Have you listed the servers' IP adresses that are allowed to connect to the Linux system in /etc/hosts.allow?

Are you running some form of firewall like IPTables?

It might be that iptables is blocking the portnumbers MySQL needs for all IP addresses except the machine that is working at the moment...
 
Old 07-19-2005, 09:51 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

raduciora, I have merged your two more or less identical threads and
would appreciate if you re-read the rules you agreed to.
 
Old 07-20-2005, 02:58 AM   #5
raduciora
LQ Newbie
 
Registered: Jul 2005
Location: Romania
Distribution: Suse, Mandriva, Fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry, problem solved

I used to create the database users like this: "user_name@host".
I created them just with "user_name" and now I can connect from any terminal of the network.
But still remains the question 'Why can I connect from 1 station with user_name@host ?'.
 
Old 07-20-2005, 04:54 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Do all machines have DNS entries on your LAN?
Are they all in the MySQL machine's /etc/hosts?
Or only the one?
 
  


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
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 03:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 08:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 02:52 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-08-2008 12:48 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM


All times are GMT -5. The time now is 08:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration