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! |
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" Code:
skip-networking |
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.. |
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? |
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 |
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 |
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) |
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. |
Thanks!! I couldn't login, because I didn't set a password for user, so the password was blank!
|
All times are GMT -5. The time now is 12:22 PM. |