Saya menjalankan server ubuntu. Ketika saya mencoba masuk ke mysql (yang sedang berjalan), saya mendapatkan kesalahan berikut
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Tetapi file mysqld.sock tidak ada di dalam /var/run/mysqld
folder. Saat menjalankan ps aux | grep mysql
perintah, saya menyadari bahwa server mysql tidak berjalan.
Saya kemudian mencoba me-restart server mysql menggunakan
service mysql start
service mysql restart
/etc/init.d/mysql start
Namun, proses awal gagal dalam semua 3 kasus.
/var/log/mysql/mysql.log
dan /var/log/mysql/mysql.err
file kosong.
Tetapi /var/log/error.log
tunjukkan informasi berikut:
140425 12:49:05 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
140425 12:49:05 [Note] Plugin 'FEDERATED' is disabled.
140425 12:49:05 InnoDB: The InnoDB memory heap is disabled
140425 12:49:05 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140425 12:49:05 InnoDB: Compressed tables use zlib 1.2.8
140425 12:49:05 InnoDB: Using Linux native AIO
140425 12:49:05 InnoDB: Initializing buffer pool, size = 3.0G
140425 12:49:05 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes
InnoDB: than specified in the .cnf file 0 26214400 bytes!
140425 12:49:05 [ERROR] Plugin 'InnoDB' init function returned error.
140425 12:49:05 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140425 12:49:05 [ERROR] /usr/sbin/mysqld: unknown variable 'record_buffer=64M'
140425 12:49:05 [ERROR] Aborting
140425 12:49:05 [Note] /usr/sbin/mysqld: Shutdown complete
ls /var/lib/mysql/ib_logfile*
?