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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.