简体   繁体   English

phpmyadmin挂起,仅导入大约50%的数据库?

[英]phpmyadmin hangs and only imports about 50% of the database?

I am using linux with phpadmin and trying to import a database. 我将Linux与phpadmin结合使用,并尝试导入数据库。 However it hangs about halfway through and just keeps constantly loading. 然而,它挂在中间约一半,并保持不断加载。 I actually have to reset my computer and when I go check the tables, I get to about letter "F" on the tables list, each and every time. 实际上,我必须重置计算机,并且每次检查表时,每次都会到达表列表上的字母“ F”。 No errors, just a constant loading and a incomplete imported database. 没有错误,只是不断加载和不完整的导入数据库。

I have already went into php config files and updated the post sizes and upload sizes, ect. 我已经进入php配置文件并更新了帖子大小和上传大小,等等。 But I am still getting this issue. 但是我仍然遇到这个问题。 Any help? 有什么帮助吗?

phpMyAdmin is limited by the PHP resource limits; phpMyAdmin受PHP资源限制的限制; memory, execution timeout, and so on. 内存,执行超时等。 Depending on your situation, your file upload may take so long that the timeout is reached, or uncompressing the file may result in exceeding the memory limits. 根据您的情况,文件上载可能需要很长时间才能达到超时,或者解压缩文件可能会导致超出内存限制。

You can try a few things: 您可以尝试一些方法:

  • Uncompress the file locally, then upload the .sql file 在本地解压缩文件,然后上传.sql文件
  • Use the " UploadDir " feature to place the file in a folder on your web server, which phpMyAdmin can then access locally. 使用“ UploadDir ”功能将文件放置在Web服务器上的文件夹中,然后phpMyAdmin可以在本地访问该文件。
  • Upload the .sql file and use the command line client, as suggested by @dognose. 根据@dognose的建议,上传.sql文件并使用命令行客户端。 I tend to use the 'source' syntax; 我倾向于使用'source'语法; after connecting to the mysql command line client just use source database.sql . 连接到mysql命令行客户端后,只需使用source database.sql Depending on the .sql file, you may first have to create and/or use the database. 根据.sql文件,您可能首先必须创建和/或use数据库。

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

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