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.

import MySQL from old host

Discussion in 'Database Discussions' 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:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    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.
     
  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:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    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.
     
Loading...

Share This Page