How to solve time out in phpmyadmin?

后端 未结 10 1354
野性不改
野性不改 2020-11-29 21:30

I want import huge (at least 300 mb) sql scripts via phpMyAdmin.

I\'ve tried:

post_max_size = 750M
upload_max_filesize = 750M
max_ex         


        
10条回答
  •  -上瘾入骨i
    2020-11-29 21:57

    I had the same issue and I used command line in order to import the SQL file. This method has 3 advantages:

    1. It is a very easy way by running only 1 command line
    2. It runs way faster
    3. It does not have limitation

    If you want to do this just follow this 3 steps:

    1. Navigate to this path (i use wamp):

      C:\wamp\bin\mysql\mysql5.6.17\bin>

    2. Copy your sql file inside this path (ex file.sql)

    3. Run this command:

      mysql -u username -p database_name < file.sql

    Note: if you already have your msql enviroment variable path set, you don't need to move your file.sql in the bin directory and you should only navigate to the path of the file.

提交回复
热议问题