简体   繁体   English

我无法在实时服务器上的mysql phpmyadmin中导入450 .sql.zip文件

[英]I'm not able to import 450 .sql.zip file in mysql phpmyadmin on live server

Actually I have magento database back and I import database back from magento tools -> database back up in .sql.gz file and I extract .sql.gz file into .sql file then again compress into .sql.zip file and try to import in database without any success yet, .sql.zip have size 500MB. 实际上我有magento数据库,并且我是从magento工具导入数据库->将数据库备份到.sql.gz文件中,然后将.sql.gz文件提取到.sql文件中,然后再次压缩成.sql.zip文件,然后尝试导入在数据库中尚未成功,.sql.zip的大小为500MB。 How can I import that file in a live MySQL server using phpMyAamin. 如何使用phpMyAamin将文件导入实时MySQL服务器。

  1. I tried bigdump : actually it imports data but not all data is import data in just half mb. 我尝试过bigdump :实际上,它导入数据,但并非所有数据都是仅半MB的导入数据。
  2. I set my php.ini setting 我设置了php.ini设置

    memory_limit = 500MB memory_limit = 500MB

    max_execution_time = 3600 max_execution_time = 3600

    post_max_size = 500MB post_max_size = 500MB

    upload_max_filesize = 500MB upload_max_filesize = 500MB

  3. When I tried to import file it processes the import database at least 10-20 minutes after that page stopped processing and got blank page with server not found. 当我尝试导入文件时,它会在该页面停止处理至少10-20分钟后处理导入数据库,并显示未找到服务器的空白页面。

it seems that your uncompressed sql files are larger than 500mb, so phpmyadmin might fail on the memory limit (not sure). 似乎您未压缩的sql文件大于500mb,因此phpmyadmin可能在内存限制上失败(不确定)。

However, if possible, I would strongly recommend not to use phpmyadmin for such large files, but a direct mysql command such as : 但是,如果可能的话,我强烈建议不要对如此大的文件使用phpmyadmin,而是直接使用mysql命令,例如:

zcat /path/to/backup.sql.gz | mysql -u 'root' -p 'password' your_database

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM