How do I export all tables in a MySQL database to a .sql file and save the file to the path I specified using PHP? I want to write a program with the functions above and execute it regularly.
4
-
Before posting a question, you should have done the proper research and made attempts to solve your issue yourself. Then, if you get stuck on something specific, come back and show us your attempt. Please read How much research effort is expected of Stack Overflow users?, How to create a Minimal, Complete, and Verifiable example and also How do I ask a good question?M. Eriksson– M. Eriksson2018-11-21 06:01:35 +00:00Commented Nov 21, 2018 at 6:01
-
2I literally goggled your title and this was the 1st result on page. Looks like it should get you going in the right direction. stackoverflow.com/questions/22195493/…Joseph_J– Joseph_J2018-11-21 06:05:13 +00:00Commented Nov 21, 2018 at 6:05
-
Possible duplicate of Export MySQL database using PHP onlyOri Marko– Ori Marko2018-11-21 06:47:08 +00:00Commented Nov 21, 2018 at 6:47
-
I've tried the method provided by the URL (stackoverflow.com/questions/22195493/…). Got a fatal error: "allowed memory size of xxx bytes" and the method does not seem to provide a way to specify a path to save the file.HSC– HSC2018-11-21 07:01:22 +00:00Commented Nov 21, 2018 at 7:01
Add a comment
|