Closed (cannot reproduce)
Project:
Backup and Migrate
Version:
6.x-2.4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2011 at 19:51 UTC
Updated:
7 Nov 2012 at 22:51 UTC
I made some backups yesterday and something went awry on the site today. That was cool - except the backup can't be restored The error message I get is
user warning: in /path/to/install/includes/database.mysqli.inc on line 134.
...
user warning: in /path/to/install/includes/database.mysqli.inc on line 134.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"3' at line 1 query: "3 in /path/to/install/includes/database.mysqli.inc on line 134.
...
user warning: in /path/to/install/includes/database.mysqli.inc on line 134.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\!K' at line 1 query: \!K in /path/to/install/includes/database.mysqli.inc on line 134.
...
user warning: in /path/to/install/includes/database.mysqli.inc on line 134.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'W' at line 1 query: ,W in /path/to/install/includes/database.mysqli.inc on line 134.
...
user warning: in /path/to/install/includes/database.mysqli.inc on line 134.
The backup was made on the same version of B&M that I trying to import with. In previous years I was able to import a B&M file directly into the db using phpMyAdmin but got errors when trying to do that as well. What is the problem? I'm hoping I can still rely on B&M and that it is an issue with something I've done.
Comments
Comment #1
Bricks and Clicks MarketingOK - there seems to be something up with B&M exports today. I was able to import successfully but only using the last B&M export from yesterday and phpmyadmin. Restore using B&M is not working at all.
Just now I setup another site and tried to import a B&M export of another site (that I'm trying to make a copy of) and this is the error from phpmyadmin:
Ideas on how to resolve this? I can't trust B&M backups from this particular install :/
Comment #2
Andy Langton commentedI'm having the same problem:
Multiple occurences of:
user warning: in [path]/includes/database.mysqli.inc on line 134.
Ocasional occurences of:
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '~' at line 1 query: ~ in [path]includes/database.mysqli.inc on line 134.
This makes backups from BM unuusable for me, also.
Comment #3
ronan commentedThat sort of looks like raw compressed output. A few things could be happening:
1) The last part of the filename (gz, bz2, zip) is getting removed so B&M and phpMyAdmin aren't able to figure out that the file is compressed an so are not decompressing the file before importing.
2) You have mod_deflate or mod_gzip enabled on your server and that, in combination with Internet Explorer is double compressing the file on download.
3) The file is getting corrupted somehow so decompression is failing. This one is not as likely since both B&M and PMA would error out at the decompression stage if that were the case.
Do any of these sound right? Are your backups compressed, and if so what's the filename when you download them? Are you able to decompress them manually (using gzip or WinZip or whatever)
Comment #4
ronan commentedComment #5
Bricks and Clicks MarketingThe boss seems fine with the nightly backups that the ISP does, so I'm not looking further into this atm. I have not experienced it on any of my other sites, so I'm guessing there is something different about this server.
Comment #6
Bricks and Clicks MarketingThe boss seems fine with the nightly backups that the ISP does, so I'm not looking further into this atm. I have not experienced it on any of my other sites, so I'm guessing there is something different about this server.
Comment #7
ronan commentedOk, I'll close it for now. Reopen if you have any other info.
Comment #8
Andy Langton commentedAs a footnote, I was able to restore an uncompressed backup, so compression does seem to be the culprit.
Comment #9
yorryk commentedSolution that works for me:
get sql file (say file.sql) from export with no compression
gzip it to file.sql.gz
then import.
Comment #9.0
yorryk commentedRemoving about a million lines of the same error code from the description