phpMyAdmin importing large SQL files failed to resolve

Source: Internet
Author: User
Tags phpmyadmin

Excerpt from: http://www.xunway.com/info/post/499.asp

Yesterday a customer in the use of phpmyadmin import Large SQL files, always prompt error, response to small, small series is also the first time encountered such problems, consulting a number of peers, summarized as follows for everyone to refer to the next
phpMyAdmin prompt when importing database: You probably tried to upload too large file. Refer to documentation for ways to workaround this limit. Error.
phpMyAdmin upload large files, when importing MySQL database: "Not receiving data to import." It may be that the file name is not committed, or it may be larger than the PHP limit. ”。

Modification Method:

Modify upload_max_filesize=32m (size customization) in php.ini

If there is no way to modify php.ini we can refer to the following method to solve

1. The best way to first open MySQL in the command-line console is to use the MySQL source command:

Perhaps the order is as follows:

The code is as follows
Mysql-u root-p database_name

You may then be prompted to enter the corresponding password

2. The following command may be useful for you when you want to change a database

The code is as follows
Mysql>use database_name

Then use the following command

The code is as follows
Mysql>source D:datafilename.sql

Of course you need to figure out the path to the file and use it correctly.

phpMyAdmin is not possible, there are too many restrictions, such as records, memory and so on!

phpMyAdmin importing large SQL files failed to resolve

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.