Skip to main content

InnoDB tables exist but phpMyAdmin gives error #1146 Table xxx doesn't exist.

Comments

12 comments

  • cPanelMichael
    Re: INNODB issue, tables exist but in phpmyadmin it gives error #1146 Table xxx doesn't exist. Hello :) Please post the output of the following command from the mysql prompt: mysql> SHOW ENGINES;
    Thank you.
    0
  • Nick57
    Re: INNODB issue, tables exist but in phpmyadmin it gives error #1146 Table xxx doesn't exist. Howdy, see above...
    0
  • cPanelMichael
    Re: INNODB issue, tables exist but in phpmyadmin it gives error #1146 Table xxx doesn't exist. Do you notice any specific error messages in the MySQL error log when this happens? Thank you.
    0
  • Nick57
    Yes, some errors about charactersets in /etc/my.cnf, i removed the lines which gaves errors... This is the mysql errror log after a mysql restart. 140226 23:56:28 mysqld_safe mysqld from pid file /var/lib/mysql/xxxxx.xxxxxxxxxxxxx.pid ended 140226 23:56:28 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 140226 23:56:28 [Note] Plugin 'FEDERATED' is disabled. 140226 23:56:28 InnoDB: The InnoDB memory heap is disabled 140226 23:56:28 InnoDB: Mutexes and rw_locks use GCC atomic builtins 140226 23:56:28 InnoDB: Compressed tables use zlib 1.2.3 140226 23:56:28 InnoDB: Using Linux native AIO 140226 23:56:28 InnoDB: Initializing buffer pool, size = 128.0M 140226 23:56:28 InnoDB: Completed initialization of buffer pool InnoDB: The first specified data file ./ibdata1 did not exist: InnoDB: a new database to be created! 140226 23:56:28 InnoDB: Setting file ./ibdata1 size to 10 MB InnoDB: Database physically writes the file full: wait... 140226 23:56:28 InnoDB: Log file ./ib_logfile0 did not exist: new to be created InnoDB: Setting log file ./ib_logfile0 size to 5 MB InnoDB: Database physically writes the file full: wait... 140226 23:56:28 InnoDB: Log file ./ib_logfile1 did not exist: new to be created InnoDB: Setting log file ./ib_logfile1 size to 5 MB InnoDB: Database physically writes the file full: wait... InnoDB: Doublewrite buffer not found: creating new InnoDB: Doublewrite buffer created InnoDB: 127 rollback segment(s) active. InnoDB: Creating foreign key constraint system tables InnoDB: Foreign key constraint system tables created 140226 23:56:28 InnoDB: Waiting for the background threads to start 140226 23:56:29 InnoDB: 5.5.35 started; log sequence number 0 140226 23:56:29 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306 140226 23:56:29 [Note] - '0.0.0.0' resolves to '0.0.0.0'; 140226 23:56:29 [Note] Server socket created on IP: '0.0.0.0'. 140226 23:56:29 [Note] Event Scheduler: Loaded 0 events 140226 23:56:29 [Note] /usr/sbin/mysqld: ready for connections. Version: '5.5.35-cll' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL) 26/Feb/2014 23:56
    0
  • Nick57
    Still not solved, what keeps me puzzled is that this VPS is just a few weeks old, running on STABLE 11.40.1.11 Clean install no problems, then suddenly over night high load and running out of memory [using the swap] and now this innodb issue. Never issues with mysql, and now it won't accept the settings for the default character set any more, this is worrying, because it might effect my other servers as well if this is due to some patching from cPanel. I can see all the tables in phpmyadmin [left column], but they innodb ones are not there in the right column, in the website they are no longer available and gone missing, when trying to create them if comes with error, so it looks like the innodb tables are locked. No idea how to solve this. Only when trying to do something with the tables generate an error in the mysql server log. For example like this: 140226 23:57:11 [ERROR] Cannot find or open table xxxxx_xxxxxx/xx_xxxxxxx from the internal data dictionary of InnoDB though the .frm file for the table exists. Maybe you have deleted and recreated InnoDB data files but have forgotten to delete the corresponding .frm files of InnoDB tables, or you have moved .frm files to another database? or, the table contains indexes that this version of the engine doesn't support. See [url=http://dev.mysql.com/doc/refman/5.5/en/innodb-troubleshooting.html]MySQL :: MySQL 5.5 Reference Manual :: 14.3.19 InnoDB Troubleshooting how you can resolve the problem. Looking in the folder, both the frm and innodb are there, having mysql ownership and nothing wrong with at first glance. Anyone, any idea?
    0
  • cPanelMichael
    Feel free to open a support ticket using the link in my signature if you want us to take a closer look as to why InnoDB is not working. We won't be able to repair any InnoDB corruption, but we can let you know if that's why it's not working. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • Nick57
    I solved the InnoDB issue by dropping the tables, but it looks now more serious, because I can't use Roundcube or Horde, it comes with errors, and when creating a new mysql DB it is not showing in the cpanel [left side] when importing data in the new table it shows 0.00mb, but it has over 92 tables with a 33MB of data and 77k records,... Roundcube DATABASE ERROR: CONNECTION FAILED! Unable to connect to the database! Please contact your server-administrator. what can I run for scripts to fix mysql issues?
    0
  • cPanelMichael
    Have you tried reinstalling Horde and Roundcube? What appears in the /var/cpanel/roundcube/log/errors file? Thank you.
    0
  • Nick57
    I have run this script and that has solved the Horde/roundcube issue, but still having this issue with mysql new DB created not showing in the total counts and db appears to be empty... /usr/local/cpanel/bin/update-horde --force Any other scripts to run to fix mysql?
    0
  • cPanelMichael
    Feel free to open a support ticket using the link in my signature if you want us to take a closer look at why new databases are not creating properly. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • Nick57
    Ticket: 4620643
    0
  • cPanelMichael
    To update, the issue was resolved after repairing the "mysql" database itself and ensuring "/scripts/update_db_cache" completed successfully. Thank you.
    0

Please sign in to leave a comment.