#1
  1. No Profile Picture
    Jimmy
    Guest
    Devshed Newbie (0 - 499 posts)
    What is the best way to backup a mysql database through a php script?
    Thanks,
    Jimmy.
  2. #2
  3. No Profile Picture
    Hans
    Guest
    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
    _dustin
    Guest
    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, 04:49 PM
  2. Need advice designing a usage tracking database (MySQL)
    By Randolpho in forum Database Management
    Replies: 0
    Last Post: February 13th, 2004, 04:11 PM
  3. Replies: 3
    Last Post: February 11th, 2004, 08:30 AM
  4. MYSQL database
    By isheikh in forum MySQL Help
    Replies: 3
    Last Post: January 14th, 2004, 10:58 PM
  5. Writing Japanese unicode text to a mysql database
    By jayhay in forum PHP Development
    Replies: 3
    Last Post: January 13th, 2004, 08:10 AM

IMN logo majestic logo threadwatch logo seochat tools logo