This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Siang ini ada sedikit trouble ketika mau melakukan import database melalui command line, ketika database di import menggunakan syntax mysql db < db.sql selalu muncul error
ERROR 2006 (HY000) at line 8834: MySQL server has gone away
Setelah di lakukan pengecekan lebih detail dengan menjalan perintah
# service mysql restart
# service mysql statuskemudian saya melakukan analisa log yang keluar dan menambahkan max_allowed_packet=64M di file my.cnf .
#vi /etc/mysql/my.cnf
[mysql]
……………..
max_allowed_packet=64M
………
[mysqldump]
max_allowed_packet=64Msave dan kemudian restart mysql
 #service mysql restart
Setelah menjalan perintah di atas, maka proses restore berjalan dengan normal.