I am trying the upload the .sql file having size 150MB
using terminal or phpmyadmin but giving the errors
this is what I did before the importing the file
in php.ini
file
1)post_max_size = 20000M
2)upload_max_filesize = 20000M
3)max_execution_time = 50000
4)max_input_time = 50000
5)memory_limit = 20000M
& in /etc/mysql/my.cn
6)max_allowed_packet = 2G
& in the /usr/share/phpmyadmin/libraries/config.defalut.php
$cfg['ExecTimeLimit'] = '0'; //to make it unlimited, this was 300 default
even after these many setting I am getting errors: when tried from the terminal as
mysql -u root -p dbname < mydbfile.sql & then entered the password & got the
error: ERROR 2006 (HY000) at line 23: MySql server has gone away
when I tried to import the database file using phpmyadmin after taking 3-4hrs it also results in the errors
like: No data received
is there any other way like reading the .sql file using the php & inserting into the database one by one. is it good way?
any idea what could be the problem?
Thanks in advance!