27 Nisan 2024 11:02

Anasayfa

undefined...

MySQL de çalışmayan ani sleep modunda bekleyen işlemleri otomatik durdurmak için aşağıdaki komutlar bir sh dosyasına yazılarak otomatik çalıştırılabilir.

mysql -uroot -pSQLPAROLA -e "select concat('KILL ',id,';') from information_schema.processlist where user='root' and time > 200 into outfile '/tmp/uyuyan_sql_islemler.txt';"
mysql -uroot -pSQLPAROLA -e "source /tmp/uyuyan_sql_islemler.txt;"
rm -rf /tmp/uyuyan_sql_islemler.txt

Makdos Bilişim Teknolojileri 2015 - 2022