![]() |
|
mysqli import problem - 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 import problem (/thread-13697.html) |
mysqli import problem - ctdlg - 2022-01-12 Hello, Happy New Year to all Zenphoto developers and users. Still a problem when importing a Zenphoto database with phpmyadmin. 1 database is empty 2 Error I get when importing a backup : 1118 - Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.To get rid of this problem, on my localhost machine, I edit my.ini and add this line : Then I can import my database. I cannot add this line on my online site : I have to ask my provider to import my database for me This issue is already documented on this forum. Thanks mysqli import problem - acrylian - 2022-01-12 The row size is probably related to the many meta data columns in the images table. There is nothing to do except skipping the fields you don't need. We eventually will move the metadata columns to their own table with the next major version. But Have you tried to use the included database backup tool? That is not a mysql backup itself but using a custom format for the content. See the "Moving installations" info on our user guide. mysqli import problem - ctdlg - 2022-01-12 Thank you acrylian I tried your suggestion. One year ago, using sql file, I did a successful image title rename (all images) - then I erased the whole database content and imported my sql file Maybe one day - I will need to mass change some data. Of course, I first check on my localhost machine before changing my online website ! mysqli import problem - acrylian - 2022-01-12
The .zdb files are text files of serialized data. So theoretically you could just do a search+replace via a text editor. However it is not that easy to "find" because everything is in that one file and all content object types have "title". What kind of renaming do you need to do regarding the titles? If you know the title exactly to change that might work. If you do some more general renaming, oerhaps some custom PHP code and SQL queries would be easier here to do that and then export it for the live site. mysqli import problem - ctdlg - 2022-01-13 Zenphoto zdb files are probably compressed example searching "image" I'm using Atom - I can use regex to search /replace. Nowadays, sql queries are difficult for me. mysqli import problem - acrylian - 2022-01-13
Yes, but you can disable that. Btw, for some reason they never work for me if compressed.
Sure, use whatever works for you. mysqli import problem - ctdlg - 2022-01-13 Thanks, I can read the uncompressed zdb file. I feeld dumb, because compression option was easy to find ... mysqli import problem - ctdlg - 2022-01-14 Same for me : Note : mysqli import problem - acrylian - 2022-01-14 I am not sure does it work in some way now or not? Above you meant it does and now you saw it corrupts the database? mysqli import problem - ctdlg - 2022-01-15 Restoring a compressed zdb backup : ok Restoring an uncompressed backup : fast, no error reported on the admin page but website is broken mysqli import problem - acrylian - 2022-01-15 Okay, thanks, now I understood. I did use our tool for a few migrations and for me the compressed ones didn't work. As usual all servers are a bit different…So at least it is working. That it takes a bit is normal because of all the tables and their data- |