LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Slackware 10 Mysql Won't start (https://www.linuxquestions.org/questions/linux-software-2/slackware-10-mysql-wont-start-199111/)

codyman 06-29-2004 11:06 AM

Slackware 10 Mysql Won't start
 
When I installed slackware 10, I told it to install mysql. It did install it but now I can't get it started. I use the standard mysqld_safe & to commence it, but when I go to use an app that uses mysql, mythtv to be exact, i get the following error:

Unable to connect to database!
Driver error was [1/1130]:
QMYSQL3: Unable to connect
Database error was:
Host '192.168.2.28' is not allowed to connect to this MySQL server

Unable to open database:
Driver error was:
QMYSQL3: Unable to connect
Database error was:
Host '192.168.2.28' is not allowed to connect to this MySQL server

Any ideas? Thanks

Mega Man X 06-29-2004 11:37 AM

Not sure if this will work for you, but looks like the way to start a few applications has change significantly (at least, with SuSE 9.1 it did). For me, to start mysql, I've to use:

rcmysqld start

Same goes to apache now:

rcapache2ctl start

I hope this will also work for you...

Good luck!

codyman 07-01-2004 10:09 AM

When I try that all I get is "command not found".

chuckt101 07-01-2004 10:20 AM

1. the mysql server is started...

2. did you add a user and allow it to connect from 192.168.2.28?

shimmer2101 07-01-2004 10:27 AM

or check hosts.allow and hosts.deny
maybe even firewall

and don't remember where but isn't there someplace in the mysql configuration
where you have to say who can connect to it?

i remember setting somewhere that only localhost can connect to my database
(using it for php that's the only place i need to connect from)

chuckt101 07-01-2004 10:48 AM

Quote:

Originally posted by shimmer2101
or check hosts.allow and hosts.deny
maybe even firewall

MySQL is refusing the connection, it has nothing to do with hosts.allow or hosts.deny or firewall.

Quote:

Database error was:
Host '192.168.2.28' is not allowed to connect to this MySQL server

Quote:

Originally posted by shimmer2101

and don't remember where but isn't there someplace in the mysql configuration
where you have to say who can connect to it?

i remember setting somewhere that only localhost can connect to my database
(using it for php that's the only place i need to connect from)

shell> mysql -u root -p mysql
mysql> select User, Host from user where User='<username>'

if i remember correctly

slackerboy 07-01-2004 02:30 PM

:cool:
Have you checked the grant tables for mysql?

Are you trying to connect as root or as another user?
In either case, the privileges have to be defined.
Let's know how it turns out. Good luck !


All times are GMT -5. The time now is 11:08 AM.