Jump to content

Archived

This topic is now archived and is closed to further replies.

mojito

copy mysql database to DIFFERENT name

Recommended Posts

Its easy to dump a database using phpmyadmin, however I would like to know how to dump this file to a new database name. I tried modifying the sql at the top where it creates the database. This gave an error.

I have putty and would like to know how i can use it locally to do this stuff from a command line.

Any help with any of the above is greatly appreciated.

m

Share this post


Link to post
Share on other sites
It should be as easy as adding "CREATE DATABASE <yourDBname>" followed by "USE <yourDBname>" at the top.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.