Error when using export/import SQL file from phpMyAdmin

mmvsbg

There's something I've done a hundred times: exporting a mysql database from one server and importing it into another. The export function provides an .sql file which then gets imported to the new server. However, my servers recently updated their phpMyAdmin version (currently 4.6.0) and now whenever I try to do that I get an error when trying to import. I think that has something to do with the escaping as one of the lines now looks like that in the exported file:

(5, 'that\\\'s not even', '2014-05-25 22:35:51', 0)

That is a part of INSERT statement for one of the tables and the triple \\\ is what bothers me. I've tried to look around the configuration and find something related to the escaping but alas no luck. No sure if that's the issue really but any tip on what might be wrong and how to fix it is more than welcome.

EDIT:

In face, that line seems to have nothing in common with the error. The error that gets displayed on import is the following: Static analysis:

1 errors were found during analysis.

Ending quote ' was expected. (near "" at position 2615077)

After that a very long query follows and I also don't know if that's relevant or not but it ends with this following line which is far from being last:

(33, 'active_plugins', 'a:2:{i:0;s:37:"admin-in-english/admin-in-english.php";i:1;s:29:"filedownload/filedownload.php";}', 'yes'),

That last one in particular is from a bunch of WordPress tables in the database if that matters.

EDIT2: And here's something even more interesting. I keep backups of old database dumps so I tried to import a dump from a couple of months back that definitely imported successfully back then. Right now, same file, but error once I try to do the import...

mmvsbg

After a lot of headbanging it turns out that the problem was limitations imposed by PHP for files larger than 6MB. After 6MB of query it would just cut it right there and logically throw and error afterwards.

The solution is either to change them or in my case, as I don't have direct access to the configuration files: SSH import worked successfully.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Mysql

Phpmyadmin: Error when visiting localhost/phpmyadmin session start

From Linux

phpMyAdmin not using config file

From Dev

“connection was reset” when importing a 20mb SQL file to MySQL via phpmyadmin in Nginx

From Dev

SQL error when running command from php file

From Dev

Using IF statement on phpmyadmin SQL tab

From Dev

error1064 using phpmyadmin

From Dev

Error when download a file from authenticated url using SSIS

From Dev

Regarding org.apache.spark.sql.AnalysisException error when creating a jar file using Scala

From Dev

"Error: parse error: premature EOF" error when reading n lines from a json file using jsonlite

From Dev

sql error when using HASH()?

From Dev

Getting error when importing sql file

From Dev

Error when reading from file

From Dev

Importing 500MB .db file into phpmyadmin using a SQL dump

From Dev

ERROR When Importing SQL File into MySQL Database

From Dev

Error in running SQL Query in PHPmyadmin

From Dev

Cannot log in to the MySQL server error when logging into phpmyadmin with Google Cloud SQL on Google App Engine

From Dev

Error while importing a SQL file to hostgator phpmyadmin

From Dev

importing this sql file to phpmyadmin is not working

From Dev

SQL - error when using UNION

From Dev

phpMyAdmin Error - SQL query

From Dev

Error when download a file from server using scp

From Dev

MySQL Workbench Create SQL Statements error when implementing in phpMyAdmin

From Dev

Connecting file to phpMyAdmin error

From Dev

Getting error when using a function defined inside a php-file from another php-file

From Dev

SQL Error when using PHPUnit

From Dev

phpMyAdmin Database Updates using sql file

From Dev

sql file exported with PhpMyAdmin contains error message

From Dev

Getting an error when using an array from a js file

From Dev

No such file or directory error when executing sql file from \i command in PosqtgreSQL

Related Related

  1. 1

    Phpmyadmin: Error when visiting localhost/phpmyadmin session start

  2. 2

    phpMyAdmin not using config file

  3. 3

    “connection was reset” when importing a 20mb SQL file to MySQL via phpmyadmin in Nginx

  4. 4

    SQL error when running command from php file

  5. 5

    Using IF statement on phpmyadmin SQL tab

  6. 6

    error1064 using phpmyadmin

  7. 7

    Error when download a file from authenticated url using SSIS

  8. 8

    Regarding org.apache.spark.sql.AnalysisException error when creating a jar file using Scala

  9. 9

    "Error: parse error: premature EOF" error when reading n lines from a json file using jsonlite

  10. 10

    sql error when using HASH()?

  11. 11

    Getting error when importing sql file

  12. 12

    Error when reading from file

  13. 13

    Importing 500MB .db file into phpmyadmin using a SQL dump

  14. 14

    ERROR When Importing SQL File into MySQL Database

  15. 15

    Error in running SQL Query in PHPmyadmin

  16. 16

    Cannot log in to the MySQL server error when logging into phpmyadmin with Google Cloud SQL on Google App Engine

  17. 17

    Error while importing a SQL file to hostgator phpmyadmin

  18. 18

    importing this sql file to phpmyadmin is not working

  19. 19

    SQL - error when using UNION

  20. 20

    phpMyAdmin Error - SQL query

  21. 21

    Error when download a file from server using scp

  22. 22

    MySQL Workbench Create SQL Statements error when implementing in phpMyAdmin

  23. 23

    Connecting file to phpMyAdmin error

  24. 24

    Getting error when using a function defined inside a php-file from another php-file

  25. 25

    SQL Error when using PHPUnit

  26. 26

    phpMyAdmin Database Updates using sql file

  27. 27

    sql file exported with PhpMyAdmin contains error message

  28. 28

    Getting an error when using an array from a js file

  29. 29

    No such file or directory error when executing sql file from \i command in PosqtgreSQL

HotTag

Archive