![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 16 Pomógł: 0 Dołączył: 22.12.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam
Ostatnio miałem problem z mysql'em - padł bez wyraźnej przyczyny (na VPS nic nie robiłem przez ostatnie 2 dni), pojawiał się błąd "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)". Próbowałem wszelkich możliwych sposobów, jakie podane były w sieci (łącznie z ponowną instalacją) i nic nie pomagało... Dopiero udało się po banalnym zabiegi - zmianie nazwy folderu z /etc/mysql na inną (tak by wczytało my.cnf z /etc/ Na tym problemy się nie skończyły (być może są to skutki reinstalacji). Po wyłaczeniu i włączeniu VPS'a muszę zabić proces mysqld (killall mysqld), a następnie odpalić po przez "/usr/local/mysql/bin/mysql" - wtedy mysqld działa, do pewnego czasu... Procesy z apache i mysql nie zamykają się - są cały czas. Ich liczba po godzinę dochodzi do ok. 1500, a serwer jest tak zapchany, że pada. W czym może być problem? http://wklej.org/id/316504/ - httpd.conf http://wklej.org/id/316506/ - my.cnf |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 16 Pomógł: 0 Dołączył: 22.12.2009 Ostrzeżenie: (0%) ![]() ![]() |
repair TABLE? Nie - jedynie przez phpmyadmin'a jeżeli jakaś tabela trafiła mi się uszkodzona.
Cytat 100415 22:52:04 mysqld_safe A mysqld process already exists Tak wyglądają logi po włączeniu VPS'a i ręcznym odpaleniu mysql.100415 22:52:04 [Note] Event Scheduler: Purging the queue. 0 events 100415 22:52:06 InnoDB: Starting shutdown... 100415 22:52:09 mysqld_safe A mysqld process already exists 100415 22:52:10 InnoDB: Shutdown completed; log sequence number 0 83404 100415 22:52:10 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete 100415 22:52:11 mysqld_safe mysqld from pid file /usr/local/mysql/data/host-01.pid ended 100415 22:52:13 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data 100415 22:52:13 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead. 100415 22:52:13 [Warning] 'record_buffer' is deprecated and will be removed in a future release. Please use 'read_buffer_size' instead. 100415 22:52:13 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead. 100415 22:52:13 [Warning] 'record_buffer' is deprecated and will be removed in a future release. Please use 'read_buffer_size' instead. 100415 22:52:13 [Warning] options --log-slow-admin-statements, --log-queries-not-using-indexes and --log-slow-slave-statements have no effect if --log_slow_queries is not set 100415 22:52:13 [Note] Plugin 'FEDERATED' is disabled. 100415 22:52:13 InnoDB: Started; log sequence number 0 83404 100415 22:52:13 [Note] Event Scheduler: Loaded 0 events 100415 22:52:13 [Note] /usr/local/mysql/bin/mysqld: ready for connections. Version: '5.1.45-log' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL) ----- Wykonałem Kod cd /usr/local/directadmin/customapache ./build clean ./build update ./build all y Po restarcie VPS'a mysql samo wstaje, ale nadal jest problem z "zapychaniem się". W tej chwili tak to wygląda: http://wklej.org/id/318596/ - httpd.conf http://wklej.org/id/318595/ - my.cnf Po 50 minutach od restartu VPS'a wygląda to następująco: http://www.bankfotek.pl/image/618869.jpeg Logi po włączeniu mysql Kod 100418 21:28:37 mysqld_safe mysqld from pid file /usr/local/mysql/data/host-01.pid ended 100418 21:28:39 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data 100418 21:28:40 [Warning] '--log_slow_queries' is deprecated and will be removed in a future release. Please use ''--slow_query_log'/'--slow_query_log_file'' instead. 100418 21:28:40 [Note] Plugin 'FEDERATED' is disabled. 100418 21:28:40 [Note] Plugin 'InnoDB' is disabled. 100418 21:28:40 [Note] Event Scheduler: Loaded 0 events 100418 21:28:40 [Note] /usr/local/mysql/bin/mysqld: ready for connections. Version: '5.1.45-log' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL) Co to może być? Ten post edytował XvAK 18.04.2010, 20:40:18 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 5.10.2025 - 02:53 |