Solve a series of problems that occur when phpmyadmin is imported into a large database, and phpmyadmin is a series

Source: Internet
Author: User
Tags website server

Solve a series of problems that occur when phpmyadmin is imported into a large database, and phpmyadmin is a series


When you use phpmyadmin to import mysql database files, if the file size exceeds 2 MB, a prompt is displayed, indicating that the import is unsuccessful. In this case, open phpmyadmin -- "libraries --" config. default. php, which contains

$ Cfg ['uploaddir'] = ''; write the folder name, such as importSQL, and create a new folder importSQL under the phpmyadmin directory to put the mysql database in, in this way, we will prompt

Upload folders from the website ServerImportSQL/Select: select the file to be imported.

This problem may occur during the import process. Got a packet bigger than 'max _ allowed_packet 'bytes. When the MySQL client or mysqld server receives an information package larger than max_allowed_packet, the "Information Package is too large" error is sent and the connection is closed. For some clients, if the communication information package is too large, a "lost connection to MySQL Server" error may occur during query. We found my. cfg under/etc/, which is the mysql configuration file. Of course, my. ini is under win, which is a little different. We changed all max_allowed_packet in to 50 M.

At last, restart the mysql server to run the Command service mysqld restart. restart and re-import. The problem is solved.


Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

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.