Error connecting to mysql

On Thu, 2008-09-04 at 10:01 +0200, Adolf C. wrote:

what if i unistall mysql and then re-install it will this help to
solve this problem


no - if you have no data to speak of in mysql, it may be useful to
delete it all and start over.

but first - since you don’t seem eager to look back, I’ll ask one last
time…

what is output of

ls -ld /var/lib/mysql
ls -l /var/lib/mysql

Craig

How did you install Mysql? since it looks like mysqld is not in your
path something is not right…

do you have mysql in your path?

which mysql

or try to find mysqld with

find / -name mysqld

and the two ls commands from Craig would be nice too…

maybe you have more than one mysql on this server

On Sep 3, 11:36 pm, Adolf C. [email protected]

On Thu, 2008-09-04 at 08:43 -0700, heimdull wrote:

and the two ls commands from Craig would be nice too…

maybe you have more than one mysql on this server


just as an fyi to heimdull…

fedora uses /usr/bin/mysqld_safe as it’s daemon and /etc/init.d/mysqld
as the startup script

It does seem possible that he has installed a separate copy of mysql but
if he has, he hasn’t given us any indication of that.

Craig

Craig:

The mysqld_safe script is just a nanny/startup script that starts the
mysqld (Mysql server) and make sure that this process is running. If
mysqld dies or is killed mysqld_safe will restart that process. By
using the mysqld executable directly you get more output to the screen
that should be helpf

Adolf:

After thinking about this more do you have SELinux running? I have
seen that to be an issue in the past where the mysqld process is
denied access to its .sock file.