Jump to content

PHP/MySQL Database Backup WITHOUT MYSQLDUMP


ds111

Recommended Posts

Hey,

 

  Can anyone please show me a PHP script that backs up a database without using the system command mysqldump? I need table structure as well as the table data.

 

Edit:

 

Looks like i can do this with:

SELECT *

INTO OUTFILE .....

 

but when i do that it throws out error: #1 - Can't create/write to file '/Library/Application Support/living-e/MAMP PRO/db/mysql/http:/localhost:8888/v2.0/db_backups/dbtest.txt' (Errcode: 2)

 

how do i make it so that it is an absolute path? so that it doesn't have the library/application.... in front of it? Thanks!

Thanks!

Ben

this is part of a content management system. im defining the path by using the base_url that i have set up (its the http url to their website) and a /db_text.txt.

 

i will take a look at that program. thanks!

 

Edit: Oh, that program looks like its a GUI program to be downloaded and installed on the computer. Not good. I need it in PHP.

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.