LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-28-2006, 07:47 PM   #1
Shioni
Member
 
Registered: Mar 2006
Posts: 182

Rep: Reputation: 30
remote mysql access in slackware?


Hi!
How can I enable remote mysql access into my server? I know that I need to bind server to my IP, but I dont know where is the actual configuration file! There are like 4 .conf files in /etc:
my-small
my-large
etc..

any suggestions? Thank you!
 
Old 11-28-2006, 08:14 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You'll need to copy one of them to /etc/my.cnf, configure it and edit /etc/rc.d/rc.mysqld. If you want to be able to access the database over the networking, you should comment out the line in /etc/rc.d/rc.mysqld:
Code:
SKIP="--skip-networking"
Also, make sure that the /etc/my.cnf file doesn't have a line like the following in it:
Code:
skip-networking
 
Old 11-28-2006, 11:54 PM   #3
Shioni
Member
 
Registered: Mar 2006
Posts: 182

Original Poster
Rep: Reputation: 30
I copied /etc/my-large.cnf to /etc/my.cnf
I commented 'skip-networking' line.
did 'killall mysqld' and 'mysqld_save &', but still no remote access..
 
Old 11-29-2006, 01:57 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm assuming that it's working locally - is that correct? You've used the mysql client to connect to a database locally?

If so, what error are you getting from the remote PC? If it's a straight "connection refused" or your iptables rules may need configuring to allow the connection to the database. If not, the database may not have started correctly. What other steps did you take when trying to start the mysql database?

Last edited by gilead; 11-29-2006 at 01:58 AM.
 
Old 11-29-2006, 11:57 AM   #5
Shioni
Member
 
Registered: Mar 2006
Posts: 182

Original Poster
Rep: Reputation: 30
Thanks!
I started with 'mysqld_safe &', it works localy, but when i try to connect to it remotly, I get:
Code:
ERROR 1130 (00000): Host '10.1.10.190' is not allowed to connect to this MySQL server
 
Old 11-29-2006, 01:16 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
There's a similar thread at http://www.thescripts.com/forum/thread160362.html - the problem there was solved with (you'd have to modify this for your site):
Code:
# mysql -u root mysql
mysql> grant all on test.* to 'username'@'10.1.10.190';
It might be worth checking out whether the info there (and the links they refer to) helps.
 
Old 11-29-2006, 01:56 PM   #7
Shioni
Member
 
Registered: Mar 2006
Posts: 182

Original Poster
Rep: Reputation: 30
I did as you sad, and now I got this:
Code:
ERROR 1045 (28000): Access denied for user 'root'@'10.1.10.190' (using password: YES)
 
Old 11-29-2006, 05:06 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have you read through the info at the link I posted earlier? There are a couple of reference links in that thread that are worth reading. Also, please google the error messages that mysql provides - believe me, you're not the first person to get a cryptic error message

Have a look at http://www.experts-exchange.com/Data..._21199049.html and http://www.webmasterworld.com/forum88/1621.htm for some more info.
 
Old 11-29-2006, 05:58 PM   #9
Shioni
Member
 
Registered: Mar 2006
Posts: 182

Original Poster
Rep: Reputation: 30
Thanks!! I couldn't login, because I didn't set a password for user, so the password was blank!
 
  


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
Remote MySQL access gauge73 Linux - Software 2 03-05-2006 08:24 AM
MySQL 4.1 remote access (Fedora Core 4) james.reid Linux - Software 2 01-04-2006 02:38 AM
MySQL 4.1 remote access james.reid Linux - Software 0 01-03-2006 05:55 AM
can't get remote access to mysql server hughes28105 SUSE / openSUSE 6 09-17-2005 09:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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