-----Original Message-----
From: McShen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 1:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mysql backup


hi

how do i back up a mysql DB table? Can you please write me the code?

Thanks.
---------________________________---------------------______________________
______---------
if u want to just back up one table why not just copy the files directly
from the folder your data resides in?? in MySQL you can just copy the whole
directory or the just files you want to back up .. so you don't really need
a script..  but since you asked for a script


go to your mysql/bin directory (command line or prompt)
type

mysqldump dbname table > <path to file eg /usr/local/backup or c:\backup>

Peter

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to