PHP script to make a backup copy of a MySQL table


/ Published in: PHP
Save to your folder(s)

The script below connects to a MySQL database server on "localhost" using the login name "test" and password "123456" and then connects to the database "test". It then copies the table structure and data from the table "products" to a new table "products_bak". If the target table already exists the function returns false.

URL: http://www.electrictoolbox.com/php-script-backup-copy-mysql-table/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.