[英]Exporting a database in phpmyadmin fails (localhost)
When I try to export a database sql file in phpmyadmin it fails. 当我尝试在phpmyadmin中导出数据库sql文件时,它失败了。 I get the following error: "Your output is incomplete, due to a low execution time limit on PHP level" . 我收到以下错误:“由于PHP级别的执行时间限制较低,您的输出不完整”。
I don't know what to do.. 我不知道该怎么办..
I experienced the exact problem already. 我已经遇到了确切的问题。 According to comments (windows, wamp, mysql) , here is a solution to get an export of your database/table(s): 根据评论(windows,wamp,mysql) ,这是一个获取数据库/表导出的解决方案:
Open CMD and paste this: 打开CMD并粘贴:
cd C:\wamp\bin\mysql\mysql15.5.8\bin
If your windows is installed into C drive, Then apply your own information in this line and paste it too: 如果您的Windows安装在C盘中,那么在此行中应用您自己的信息并粘贴它:
mysqldump -u username -p databasename > filename.sql
Note: username
is root
by default. 注意:默认情况下, username
名为root
。
Also you can determine a particular table like following: 您还可以确定特定的表,如下所示:
mysqldump -u username -p databasename tablename1 tablename2 > filename.sql
Here is an example: 这是一个例子:
cd C:\\wamp\\bin\\mysql\\mysql15.5.8\\bin
写cd C:\\wamp\\bin\\mysql\\mysql15.5.8\\bin
mysqldump -u root -p univercity students > H://TheNameOfStudents.sql
然后编写mysqldump -u root -p univercity students > H://TheNameOfStudents.sql
PhpMyAdmin is a php application. PhpMyAdmin是一个php应用程序。 (I should change my username to Obviousman.) (我应该将用户名更改为Obviousman。)
It's running out of time exporting your table. 导出表格的时间不多了。
You need to change a line in the file called php.ini
. 您需要更改名为php.ini
的文件中的一行。
If you're running WAMP on your own Windows box, you might find it at a path like C:\\wamp\\bin\\apache\\apache2.4.9\\bin
. 如果您在自己的Windows机器上运行WAMP,您可能会在C:\\wamp\\bin\\apache\\apache2.4.9\\bin
类的路径上找到它。 But you have to look for it. 但你必须寻找它。
If you're using a hosting service, use their knowledge base or call their support and ask how to change php.ini. 如果您正在使用托管服务,请使用他们的知识库或致电他们的支持并询问如何更改php.ini。
look for the line called max_execution_time
, and make its value bigger. 寻找名为max_execution_time
的行,并使其值更大。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.