×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Need Help Starting MySQL!

Need Help Starting MySQL!

Need Help Starting MySQL!

(OP)
The other day, mysql died on my system for no apparent reason. When I reboot
the machine, based on the script in /etc/rc.d/init.d/mysql, mysql should
start up and it does --somewhat.

Here's the message I get:

[root@myserver mysql]# /etc/rc.d/init.d/mysql start
[root@myserver mysql]# Starting mysqld daemon with databases from
/usr/var/mysql

And it shows up in the process list below...
root      5340  0.0  0.3  1668  828 pts/0    S    21:23   0:00 sh
/usr/bin/safe_
mysql     5365  0.0  0.4  3308 1176 pts/0    S    21:23   0:00
/usr/sbin/mysqld
mysql     5366  0.0  0.4  3308 1176 pts/0    S    21:23   0:00
/usr/sbin/mysqld
mysql     5367  0.0  0.4  3308 1176 pts/0    S    21:23   0:00
/usr/sbin/mysqld

And it logs it to my /usr/var/mysql/server.log as:

/usr/sbin/mysqld, Version: 3.23.21-beta-log, started with:
Tcp port: 3306  Unix socket: /var/lib/mysql/mysql.sock
Time                 Id Command    Argument

But any commands I send to mysql or mysqladmin hangup and nothing ever
happens. I then have to kill -9 to force it to stop.

So now I manually go in and start it, as root with safe_mysqld. Here's what
I get:

[root@myserver mysql]# safe_mysqld
kill 4212: No such process
Starting mysqld daemon with databases from /usr/var/mysql
mysqld daemon ended

It tries to kill a process, but there is no process in the list!

This seems to start it, but then, any commands I send to it just hang the
app.

If I just try to run mysql from command line I get this:

[root@myserver mysql]# mysql
ERROR 2002: Can't connect to local MySQL server through socket
'/var/lib/mysql/m
ysql.sock' (111)

One other thing -- if I try to stop mysql, with:

[root@myserver /etc]# /etc/rc.d/init.d/mysql stop
Killing mysqld with pid 9024
Wait for mysqld to exit\c

It never stops it, just gives up waiting.

One thing I have to consider is some recent DNS work I did. Is it possible
DNS could cause these problems?

I'm really at a loss here. Any help is greatly appreciated.

Thanks,

Jeff

RE: Need Help Starting MySQL!

hi,
How can y use several harddisks for a mysql database in linux?
I have two hard disks and one is getting out of space becuase the database is loading a lot of information, how can i tell mysql to save data start saving data in the other disk?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close