Best practice: Import mySQL file in PHP; split queries

后端 未结 13 617
Happy的楠姐
Happy的楠姐 2020-11-29 00:08

I have a situation where I have to update a web site on a shared hosting provider. The site has a CMS. Uploading the CMS\'s files is pretty straightforward using FTP.

<
13条回答
  •  失恋的感觉
    2020-11-29 00:48

    Can you use LOAD DATA INFILE?

    If you format your db dump file using SELECT INTO OUTFILE, this should be exactly what you need. No reason to have PHP parse anything.

提交回复
热议问题