1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    What is the best way to backup a mysql database through a php script?
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    You could use the exec function to execute the program mysqldump and send the output of mysqldump to some file.
  4. #3
  5. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Antoher way could be to dump specified tables to a file with tabbed spaces, and then output it to a file. Personally I don't like using exec for security, so that's how I do it.

Similar Threads

  1. Replies: 13
    Last Post: June 4th, 2004, 05:49 PM
  2. Need advice designing a usage tracking database (MySQL)
    By Randolpho in forum Database Management
    Replies: 0
    Last Post: February 13th, 2004, 05:11 PM
  3. Replies: 3
    Last Post: February 11th, 2004, 09:30 AM
  4. MYSQL database
    By isheikh in forum MySQL Help
    Replies: 3
    Last Post: January 14th, 2004, 11:58 PM
  5. Writing Japanese unicode text to a mysql database
    By jayhay in forum PHP Development
    Replies: 3
    Last Post: January 13th, 2004, 09:10 AM

IMN logo majestic logo threadwatch logo seochat tools logo