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!

Incorrect database name

Discussion in 'Database Discussion' started by Datacenter1, Oct 22, 2016.

Tags:
  1. Datacenter1

    Datacenter1 Member

    Joined:
    Feb 11, 2006
    Messages:
    6
    Likes Received:
    2
    Trophy Points:
    153
    Location:
    Chicago
    cPanel Access Level:
    DataCenter Provider
    Hi

    I'm getting the following error message each time I try mysqlcheck --all-databases --analyze comand
    Code:
    mysqlcheck: Got error: 1102: Incorrect database name '#mysql50#.cpanel' when selecting the database
    and checking in mysql:
    Code:
    MariaDB [(none)]> show databases;
    +-----------------------------+
    | Database                    |
    +-----------------------------+
    | #mysql50#.cpanel   
    It doesn't look like a real database but I can't get rid of it
    Code:
    MariaDB [(none)]> drop database `#mysql50#.cpanel`;
    ERROR 1102 (42000): Incorrect database name '#mysql50#.cpanel
    Any idea how to delete that "database"
    and how got created in first place?

    Server is CentOS 7 / cPanel 11.58.0 (build 32) / Cloudlinux / Mariadb 10.1.18

    Thank you
     
  2. Datacenter1

    Datacenter1 Member

    Joined:
    Feb 11, 2006
    Messages:
    6
    Likes Received:
    2
    Trophy Points:
    153
    Location:
    Chicago
    cPanel Access Level:
    DataCenter Provider
    It was a hidden .cpanel dir in /var/lib/mysql
    Deleting the hidden forlder fix my issue
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I'm happy to see you were able to address the issue. Thank you for updating us with the outcome.
     
    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