IXWebHosting不能导入大数据库的解决方案
建站有段时间之后,站点中就会有大量的信息,这些数据信息有时候,非常的大,那么,导入数据就非常的麻烦,而我们通过phpmyadmin有没有办法解决这个问题呢?参考phpmyadmin官方文档的参数配置
The first things to check (or ask your host provider to check) are the values of upload_max_filesize, memory_limit and post_max_size in the php.ini configuration file. All of these three settings limit the maximum size of data that can be submitted and handled by PHP. One user also said that post_max_size and memory_limit need to be larger than upload_max_filesize.
修改如下:
upload_max_filesize = 300M
memory_limit = 512M
post_max_size = 380M
未能通过phpmyadmin导入110M的数据库文件
通过如下办法实现了导入大数据库的操作:
A通过php文件来导入mysql数据库,将需要导入的sql文件命名为test.sql,上传到网站根目录,将上面的代码保存为import.php也 上传到根目录,然后运行import.php(见附件), 即可完成数据库的导入。注意:导入之后,请一定要删除或者重命名这个import.php文件