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.

Incorrect database name

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

Tags:
  1. Datacenter1

    Datacenter1 Registered

    Joined:
    Feb 11, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    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 Registered

    Joined:
    Feb 11, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    It was a hidden .cpanel dir in /var/lib/mysql
    Deleting the hidden forlder fix my issue
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see you were able to address the issue. Thank you for updating us with the outcome.
     
Loading...

Share This Page