Jump to content

[SOLVED] i have a large .sql database dump that needs to be cleaned up.


jjk2

Recommended Posts

so i have one large 30mb .sql

 

it has html codes in teh  database.

 

my mistake was that i didn't mysql_escape() the html codes before creating teh whole .sql

 

the .sql is something like

 

INSERT into "foods" VALUES ('1', '<html></something.....'),

 

a long line of that.

 

so how can i stick the 30mb into an array, and then parse, and replace the html with the mysql escaped html version ?

 

 

this is a big file so, im not sure if my approach is teh best.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.