/etc/init.d/mysql statuscoming back with:
mysql is not running but lock existsSolved by removing the lock file:
rm /var/lock/subsys/mysql
/etc/init.d/mysql statusmysql is not running but lock exists rm /var/lock/subsys/mysql
/etc/init.d/mysql status
mysql is not running but lock exists
rm /var/lock/subsys/mysql
You need to install perl modules:-cpan -i Term::ReadKey
cpan -i Term::ANSIColor
cpan -i Time::HiRes
wget http://jeremy.zawodny.com/mysql/mytop/mytop-1.6.tar.gz
tar -zxvf mytop-1.6.tar.gz
cd mytop-1.6
perl Makefile.PL
make
make test
make install
mytop -u dba -p 'password' -h 10.2.4.5 -d mydb
mysql -u username -ppassword database_name < your_data.sql
KeepAlive On
KeepAliveTimeout 3
<IfModule prefork.c>
StartServers 2
MinSpareServers 2
MaxSpareServers 5
ServerLimit 100
MaxClients 100
MaxRequestsPerChild 500
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 15
MaxSpareThreads 50
ThreadsPerChild 15
MaxRequestsPerChild 0
</IfModule>
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K