Forum Moderators: coopster

Message Too Old, No Replies

php script to restore mysql db from sql file?

         

shams

3:15 am on May 20, 2007 (gmt 0)

10+ Year Member



hi,
i tried the search engines but didn't find a script to work for restoring the mysql db from a .sql file, can any one give me the link for such php script or the code? the script should open the browse window to my local hard disk i can select the .sql file to restore.

phparion

3:55 am on May 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



did you try phpmyadmin

shams

2:19 am on May 21, 2007 (gmt 0)

10+ Year Member



thanks i know that is working but i need a small script of backup and restore to add to a program, which i developed free for a hospital, that hospital also helping free the poor patients.

jatar_k

2:20 am on May 21, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you need to use mysqldump [dev.mysql.com]