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 mysql user

Discussion in 'Database Discussions' started by mahdy_sharifi, Sep 24, 2014.

  1. mahdy_sharifi

    mahdy_sharifi Well-Known Member

    Joined:
    Feb 26, 2012
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello :

    How can copy mysql user from any server to other server ?
    Mysqluser + database name
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can simply create the MySQL user on the destination server. MySQL databases are backed up the "Backup" option in cPanel or via a command such as:

    Code:
    mysqldump database_name > /path/to/database.sql
    Then, after transferring the SQL file to the destination server, you can restore it via cPanel or with a command such as:

    Code:
    mysql database_name < /path/to/database.sql
    You can map a database to an account via:

    "WHM Home » SQL Services » Database Map Tool"

    Thank you.
     
Loading...

Share This Page