|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Mysqldump and mysqlimport utilities
I would like to copy a database with multiple tables to a database with ANOTHER name on the same host, localhost. This is to create a development enviornment with realistic data but have freedom to change most anything and not mess up the read data.
I think I got all the data out with: mysqldump databases OldDbName > Olddb200805.sql Can I import the tables, data, etc into NewDbName with: mysqlimport NewDbName Olddb200805.sql I am concerned that these utilities will work for backing-up a database and restoring the database, tables, and data but only to a database with the same name. I have read the manual for these utilities but it is not clear to me what "db_name" means in mysqlimport. Thanks, John |
|
#2
|
||||
|
||||
|
See this blog post, near the end it shows
Quote:
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) Understanding SQL Joins An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Mysqldump and mysqlimport utilities |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|