![]() |
Simple MySQL problem
I want to copy the entire contents of a database on the same server, using the same host, user etc to a new database with a different name. Is there an easier way to do it rather than backing it up and restoring it with a new name?
|
do you have root to the box? because you should just be able to just copy the db files into the directory of mysql under the new DB name! That should be it.
jDoG |
c:\winnt\system32\msql\ copy those.. duno about linux :thumbsup
|
Quote:
|
Hi Tipsy :)
Assuming your using unux or similiar try this: mysqldump -u DBUSER DBNAME -p > dbdump.sql then run your db client and type > create database NEWDBNAME; exit the client then do this mysql -u DBUSER NEWDBNAME -p < dbdump.sql (of course replacing the italics with your db details) Hope that helps |
Quote:
|
Quote:
Quote:
|
Quote:
I always use this method myself.... I think there is a simpler way but without my manual I'm clueless :) |
Pure genius Vending Machine :)
I'm taking notes.......... |
All times are GMT -7. The time now is 10:08 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123