![]() |
|
mysqli related error when restoring from backup - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: mysqli related error when restoring from backup (/thread-11630.html) |
mysqli related error when restoring from backup - saigo - 09-02-2014 In the process of moving my zenphoto install from one VPS VM to another. Ran the backup on the old host, and have got to the point of running setup on the new host. When I select my backup and attempt to restore, I get this error : Quote:Fatal error: MySQLi Error: ( SHOW INDEX FROM These are my mysql rpm version : Quote:# rpm -qa | grep mysql I'm really just posting this as a long-shot to see if anyone has seen this problem before, and/or can put their finger on the fix. I couldn't find anything from searching..hence the long-shot. mysqli related error when restoring from backup - sbillard - 09-02-2014 There was a a bug in handling database prefixes which were simple underscores. So probably you should change your prefix. Otherwise use the 1.4.5.9 release for the new install. mysqli related error when restoring from backup - saigo - 10-02-2014 Thanks for your reply. Looking at the tables in my new DB, and if I understand correctly, I don't see any prefix with underscores Quote:+--------------------+ Regarding your second point, and restoring my backup from a 1.4.5.5 version to a 1.4.5.9 version. Do I simply put 1.4.5.9 in place on my new host, and copy something from my 1.4.5.5 version zenphoto directory ( saved from the old host ) into the new 1.4.5.9 zenphoto directory, and then run setup, so I see the "restore from backup" option ? If so, could you please point out what I have to copy from the old to the new ? mysqli related error when restoring from backup - acrylian - 10-02-2014 BY default Zenphoto uses a database prefix Actually all is written here how to upgrade: mysqli related error when restoring from backup - sbillard - 10-02-2014 The DB prefix is defined in your zenphoto configuration file. The actual default of this will depend upon the folder where zenphoto is installed. If it is installed in the root the it may default to a simple underscore. mysqli related error when restoring from backup - saigo - 08-03-2014 Thanks for replies - just finally got around to playing with this again. copied the backup file and albums directory from the old zenphoto directory into latest version directory. In zenphoto.cfg.php file, I changed $conf['mysql_prefix'] = "."; to $conf['mysql_prefix'] = "zp"; Re-ran setup, and restored from backup.. all worked like a charm. |