If try to import large SQL (MySqL) file and take long lime or fail to work.
Try the bellow steps:
Create an 'Upload' and a 'save' directories for PhpMyadmin
mkdir /etc/phpmyadmin/upload
mkdir /etc/phpmyadmin/save
chmod a+w /etc/phpmyadmin/upload
chmod a+w /etc/phpmyadmin/save
Then edit phpmyadmin's config file:
sudo nano /etc/phpmyadmin/config.inc.php
add absolute path for both 'upload' and 'save' directories:
$cfg['UploadDir'] = '/etc/phpmyadmin/upload';
$cfg['SaveDir'] = '/etc/phpmyadmin/save';
$cfg['Servers'] [$i] ['LoginCookieValidity'] = 72000;
Now copy the koha_library.sql file to [
/etc/phpmyadmin/upload]
cp /your koha_library.sql file/ /etc/phpmyadmin/upload/
sudo chmod 777 /etc/phpmyadmin/upload/koha_library.sql
Timeout error in phpMyAdmin during import database from file
and
Open (search code using F6 in nano editor)
nano /usr/share/phpmyadmin/libraries/config.default.php
$cfg['ExecTimeLimit'] = 300; Make it to
$cfg['ExecTimeLimit'] = 0;
Restart Apache2
service apache2 restart
No comments:
Post a Comment