for import mysql database give me this error :
$ `mysql -u user -p password zxc_db < zxc.sql`
ERROR 1153 (08S01) at line 96: Got a packet bigger than 'max_allowed_packet' bytes
Please give me a best solution to solve it ?
tanx .
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
the best solution is ” change mysql.cnf ”
debian :
/etc/mysql/mysql.cnf
change this line ==>
max_allowed_packet = 16Mto :
max_allowed_packet = 128Mor
add –max_allowed_packet=128M to your mysqldump command.