October 27, 2016

Cara Mengatasi Error Innodb di Mysql

 Mengatasi Error Innodb di Mysql

hello semua, pasti salah satu dari kalian pernah ada yang mengalami error mysql, salahsatunya pasti error mysql tidak bisa di hidupkan. oke kali ini saya akan membahas Mengatasi Error Innodb di Mysql.



  1. cek pada log myql dengan "tail /var/log/mysqld.log". biasanya akan ada seperti ini
    InnoDB: To fix the problem and start mysqld:
    InnoDB: 1) If there is a permission problem in the file and mysqld cannot
    InnoDB: open the file, you should modify the permissions.
    InnoDB: 2) If the table is not needed, or you can restore it from a backup,
    InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
    InnoDB: crash recovery and ignore that table.
    InnoDB: 3) If the file system or the disk is broken, and you cannot remove
    InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
    InnoDB: and force InnoDB to continue crash recovery here.
    161026 23:03:05 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
     
  2. jika sudah maka yang harus kita lakukan adalah menambahkan sedikit script ke my.cnf
  3. tambahkan satu baris "innodb_force_recovery = 1"
oke seharusnya setelah itu langsung bisa direstart, kalau servicenya masih belum bisa direstart, jangan panik dan coba reboot server.

oke sekian tutorial dari saya, sekian dan terimakasih.

0 komentar:

Post a Comment