IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links
wiki:Ippdb_copy_database

Version 1 (modified by trac, 17 years ago) ( diff )

--

  • make a backup of a mysql database called DBNAME with: mysqldump -uUSERID -hDBHOST -pPASSWD --opt DBNAME > DBNAME.mysql
  • create a new database with: mysql> create database NEWDB;

(user USERID must have CREATE permissions)

  • unpack the backed-up copy of DBNAME into your new database NEWDB with:

mysql -uUSERID -hDBHOST -pPASSWD NEWDB < DBNAME.mysql

(will wipe out the exising DB)

Note: See TracWiki for help on using the wiki.