LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-28-2010, 12:46 PM   #1
Chris1989
LQ Newbie
 
Registered: Oct 2009
Distribution: Fedora 11 + CentOS 5.1
Posts: 17

Rep: Reputation: 3
MySQL Query Browser connection help


Hey guys, i have MySQL on my CentOS server and have installed it and got it up and running through the command line.

I have changed root's username and password so there is no user called 'root' anymore. I also created a database called pancakes.

Now when i try to log in using Query Browser, i put the server's IP in 'hostname', my new roots username and password in 'username' and 'password'

When i try to log in it gives me error 1130 and says connection from myhostname not allowed.

Any ideas?

Cheers.

(i am a mysql newb).
 
Old 01-28-2010, 12:50 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Did you change the setting in my.cnf to make MySQL listen on the IP of your server? Default it only listens on localhost.

Kind regards,

Eric
 
Old 01-28-2010, 12:52 PM   #3
Chris1989
LQ Newbie
 
Registered: Oct 2009
Distribution: Fedora 11 + CentOS 5.1
Posts: 17

Original Poster
Rep: Reputation: 3
this is all i have in my.cnf

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
 
Old 01-28-2010, 01:01 PM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Just below the mysqld section in the my.cnf file add this:
Code:
bind-address=YOURIPADDRESS
and restart MySQL to apply the changes. Then you should be able to connect, if no firewall or SELinux is enabled. If those are enabled you'll also have to make sure that connections to the MySQL server are allowed.

Kind regards,

Eric
 
1 members found this post helpful.
Old 01-28-2010, 01:34 PM   #5
Chris1989
LQ Newbie
 
Registered: Oct 2009
Distribution: Fedora 11 + CentOS 5.1
Posts: 17

Original Poster
Rep: Reputation: 3
cheers!
 
Old 01-28-2010, 01:35 PM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

If that means you got it working then please mark your thread as solved using the Thread tools. Have fun using Linux.

Kind regards,

Eric
 
Old 01-28-2010, 01:36 PM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Sorry, too late You already did it.
 
  


Reply



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
mysql query browser mahmoud Linux - Software 4 10-20-2008 12:34 PM
The MySQL Query Browser jeremy LQ Articles Discussion 3 10-15-2008 01:20 PM
mysql-query-browser wont launch ckoniecny Linux - General 1 03-09-2006 04:10 AM
mysql-query-browser thoyyib Linux - Software 1 03-01-2006 12:46 PM
MySQL Query Browser 1kyle SUSE / openSUSE 0 10-21-2005 07:40 AM

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

All times are GMT -5. The time now is 10:43 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