The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

copy database

Discussion in 'General Discussion' started by HH-Steven, Mar 6, 2005.

  1. HH-Steven

    HH-Steven Well-Known Member

    Joined:
    Aug 29, 2004
    Messages:
    284
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    hi, im wanting to copy and rename a database via ssh

    current database would be : squaduk_forum

    copy and rename to : squadf_forum

    so the original would be left in tact and i would have a duplicate ready to use on a different account.

    (hope that makes sense)

    can this be done via ssh, if so how?

    thanks.
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    cd /var/lib/mysql
    cp -RP SOME_DBSASE NEW_DB_NAME

    Hope this helps!
     
  3. HH-Steven

    HH-Steven Well-Known Member

    Joined:
    Aug 29, 2004
    Messages:
    284
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    That worked fine Andy, thanks
     
Loading...

Share This Page