php - copy mysql blob field from one database to the other -
I have a database with images stored in the Blob field. Can not help it, it was the last developer's choice.
Now I need the data in a new site and the provider will not let me copy the data in an easy way (the file has grown 11 MB - he will not upload and I do not have shell access) . So I thought I would write a script which opens a connection in DB1, selects all the records, and then makes a copy in the table in DB2.
If I want to copy them too, then it will not be included.
Did anyone have something similar before?
11MB is not a big file, I'm surprised that your host has such low The maximum size is size.
Have you thought about exporting as SQL, file in two (notepad ++) or something else) then upload it into smaller sections? Will not take long.
Comments
Post a Comment