Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8527839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:40:13+00:00 2026-06-11T08:40:13+00:00

I tried to import a large sql file through phpMyAdmin…But it kept showing error

  • 0

I tried to import a large sql file through phpMyAdmin…But it kept showing error

‘MySql server has gone away’

What to do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:40:15+00:00Added an answer on June 11, 2026 at 8:40 am

    As stated here:

    Two most common reasons (and fixes) for the MySQL server has gone away
    (error 2006) are:

    Server timed out and closed the connection. How to fix:

    1. check that wait_timeout variable in your mysqld’s my.cnf configuration file is large enough. On Debian: sudo nano
      /etc/mysql/my.cnf
      , set wait_timeout = 600 seconds (you can
      tweak/decrease this value when error 2006 is gone), then sudo
      /etc/init.d/mysql restart
      . I didn’t check, but the default value for
      wait_timeout might be around 28800 seconds (8 hours).

    2. Server dropped an incorrect or too large packet. If mysqld gets a packet that is too large or incorrect, it assumes that something has
      gone wrong with the client and closes the connection. You can increase
      the maximal packet size limit by increasing the value of
      max_allowed_packet in my.cnf file. On Debian: sudo nano
      /etc/mysql/my.cnf
      , set max_allowed_packet = 64M (you can
      tweak/decrease this value when error 2006 is gone), then sudo
      /etc/init.d/mysql restart
      .

    Edit:

    Notice that MySQL option files do not have their commands already available as comments (like in php.ini for instance). So you must type any change/tweak in my.cnf or my.ini and place them in mysql/data directory or in any of the other paths, under the proper group of options such as [client], [myslqd], etc. For example:

    [mysqld]
    wait_timeout = 600
    max_allowed_packet = 64M
    

    Then restart the server. To get their values, type in the mysql client:

    > select @@wait_timeout;
    > select @@max_allowed_packet;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to import Database through phpMyAdmin. My database file is a.sql
After frivolously attempting to import a large database (84mb) into PHPMyAdmin (tried increasing memory
When I try to paste a large(5000 lines) sql file into PhpMyAdmin, I get
I've seen some code such as: out.println(print something); I tried import java.lang.System; but it's
I can't import a sql file that is more than 10 MB. Is there
I am trying to import a large database but because there's an index, it
I have got a file containing a large amount of numbers. I have tried
I have been trying for quite a while to import a large (4GB) sql
I have a large (100+ tables) SQL Server 2005 database that I would like
Does anyone know how to open a large imagery file using python? I tried

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.