MySQL is not running, but lock exists


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat MySQL is not running, but lock exists
# 1  
Old 05-10-2011
MySQL is not running, but lock exists

Code:
[root@adroit ~]# service mysql status
MySQL is not running, but lock exists [FAILED]

I deleted the lock using
Code:
rm /var/lock/subsys/mysql

still the problem persists.

I tried using mysqld_safe, still the same issue. Unable to start mysql
Code:
[root@adroit ~]# mysqld_safe
nohup: ignoring input and redirecting stderr to stdout
Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/lib/mysql/zabbix.pid
110510 17:33:17 mysqld ended
[root@adroit ~]#

Once the mysql is started after that only I can proceed further.

Please help.
# 2  
Old 05-10-2011
How did the database go down in the first place. disk failure, server reboot, human error, you-don't-know?

What does the error log (mysqld.log) say?
# 3  
Old 05-10-2011
The mysql went down because of server(where mysql is down) migration from one network to another.
After editing the required file for migration, server was rebooted.

I seems there is some human error, but no idea where ?

I don't find any mysqld.log.
Code:
adroit:/var/log 30 ] cd /var/log
adroit:/var/log 31 ] ls -lrt|grep mysqld
adroit:/var/log 31 ]

Is the database got corrupted??
# 4  
Old 05-10-2011
What changes exactly were made to the configuration file? Whats the current IP configuration for the machine, what was the old configuration? Were any software upgrades done? Note that the log file isn't necessarily mysqld.log, but can also be named mysql.{log,err}, or is logging through the regular syslog mechanism.

A database corruption is rather unlikely if all that changed really is just the network configuration.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

File exists, -f not specified and is running in the background

Hi guys, i am not too sure how i got this error, file exists, -f not specified and is running in the background my coding is just schedule to rm files that is more then 365 days. find $BDUMP_DIR -name "*.bak.Z" -mtime +365 -exec rm {} \; :confused::confused: (1 Reply)
Discussion started by: redologger
1 Replies

2. Shell Programming and Scripting

File exists, but cannot be opened.How to check- whether it could be opened to read when it exists

Hi #Testing for file existence if ; then echo 'SCHOOL data is available for processing' else echo 'SCHOOL DATA IS NOT AVAILABLE FOR PROCESSING' : i wrote a script, where it begins by checking if file exists or not. If it exists, it truncates the database... (2 Replies)
Discussion started by: rxg
2 Replies

3. UNIX for Advanced & Expert Users

Testing privileges -lock lockfile /var/lock/subsys/..- Permission denied

Hi all, I have to test some user priviliges. The goal is to be sure that an unauthorized user can't restart some modules (ssh, mysql etc...). I'm trying to automate it with a shell script but in same cases I got the syslog broadcast message. Is there any way to simply get a return code... (3 Replies)
Discussion started by: Dedalus
3 Replies

4. Red Hat

Security Question: Lock after invalid login, Session Lock and Required Minimum Password Length

Hello all, If anyone has time, I have a few questions: How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too. 1. How to lock the account after a few (like 3) invalid password attempts? 2. How do you lock a screen after 30... (1 Reply)
Discussion started by: nstarz
1 Replies

5. Virtualization and Cloud Computing

Running MySQL on Amazon EC2 with Elastic Block Store

Here is an excellent article on Running MySQL on Amazon EC2 with Elastic Block Store. Amazon Web Services Developer Connection : Running MySQL on Amazon EC2 with Elastic Block Store (0 Replies)
Discussion started by: Neo
0 Replies

6. Programming

API C MYSQL vs lock table ???

(sorry for my english) Hi, i have an app that uses MYSQL API C.. i trying do a timeout until the table is locked by an other thread , in the docs of Mysql i can see that MYSQL_OPT_READ_TIMEOUT is not implemented for linux ¿?¿?.. any body knows a way to do a timeout until the table is locked by... (0 Replies)
Discussion started by: JEscola
0 Replies

7. UNIX for Dummies Questions & Answers

how to lock keyboard without using lock command

how can I lock my keyboard while I'm away from the computer without using lock command. What other commands gives me the option to lock keyboard device? thanks (7 Replies)
Discussion started by: dianayun
7 Replies
Login or Register to Ask a Question