Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

import MySQL from old host

Discussion in 'Database Discussion' started by WLS-ITGuy, Oct 14, 2014.

  1. WLS-ITGuy

    WLS-ITGuy Member

    Joined:
    Oct 13, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello All,

    I hope I explain this right. We are moving some of our sites in house. When I started to create a db so I could CLI import the database as it is 385Mb I noticed that it will prefix the db with the site name. I can only imagine that this will cause issues when I upload the site files. Is there a way to create a database without the prefix?

    Thanks in advance.

    WLS-ITGuy
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,903
    Likes Received:
    1,814
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, you can browse to the "SQL" tab in "WHM Home » Server Configuration » Tweak Settings" and turn off the following option:

    "Require a username prefix on names of new databases and database users"

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. WLS-ITGuy

    WLS-ITGuy Member

    Joined:
    Oct 13, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Excellent! Thank you! Is there a way to create a db in phpmyadmin?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,903
    Likes Received:
    1,814
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    It's important to create the databases through cPanel to ensure ownership is assigned correctly. You can create the database through the command line, but you must use the database mapping tool after doing so:

    "WHM Home » SQL Services » Database Map Tool"

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice