Error! MySQL is not running on your system - database list could not be retrieved

Good Day

I can’t run to run MySQL Database Server as It gives me an error: DBI connect failed : Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2).

So I ran “journalctl -xe” and received this:

– A start job for unit user-runtime-dir@1006.service has begun execution.

– The job identifier is 66752.
Apr 20 13:55:15 examle.me systemd[1]: Finished User Runtime Directory /run/use>
– Subject: A start job for unit user-runtime-dir@1006.service has finished suc>
– Defined-By: systemd
– Support: Enterprise open source support | Ubuntu

– A start job for unit user-runtime-dir@1006.service has finished successfully.

– The job identifier is 66752.
Apr 20 13:55:15 example.me systemd[1]: Starting User Manager for UID 1006…
– Subject: A start job for unit user@1006.service has begun execution
– Defined-By: systemd
– Support: Enterprise open source support | Ubuntu

– A start job for unit user@1006.service has begun execution.

– The job identifier is 66679.

Then for “systemctl status mysql.service” I received the following:

  • mysql.service - MySQL Community Server
    Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset:>
    Active: activating (start) since Wed 2022-04-20 14:03:50 UTC; 155ms ago
    Process: 31625 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=>
    Main PID: 31635 (mysqld)
    Status: “Server startup in progress”
    Tasks: 1 (limit: 9442)
    Memory: 9.2M
    CGroup: /system.slice/mysql.service
    └─31635 /usr/sbin/mysqld

Apr 20 14:03:50 example.me systemd[1]: Starting MySQL Community Server…

A simple reboot of my server usually start MySQL Database Server, however it doesn’t turn on now. I even followed these posts but no success:

Kind Regards

SYSTEM INFORMATION
OS type and version Ubuntu Linux 20.04.4
Webmin version 1.990
Virtualmin version 6.17-3

You need to check the MySQL log for why it isn’t starting. There is no useful information here.

Hi @Joe

Thank you for the quick respond. My MySQL Error log:

“2022-04-20T02:20:03.861300Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.28-0ubuntu0.20.04.3) starting as process 107628
2022-04-20T02:20:04.018001Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-04-20T02:20:07.565424Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2022-04-20T02:20:12.055362Z 0 [System] [MY-010229] [Server] Starting XA crash recovery…
2022-04-20T02:20:12.067080Z 0 [System] [MY-010232] [Server] XA crash recovery finished.
2022-04-20T02:20:12.175223Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2022-04-20T02:20:12.175282Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2022-04-20T02:20:12.225090Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: ‘8.0.28-0ubuntu0.20.04.3’ socket: ‘/var/run/mysqld/mysqld.sock’ port: 3306 (Ubuntu).
2022-04-20T02:20:12.225447Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: ‘127.0.0.1’ port: 33060, socket: /var/run/mysqld/mysqlx.sock
2022-04-20T02:25:07.082823Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.28-0ubuntu0.20.04.3) starting as process 108613”

Regards

I don’t see any obvious problem there. So, I don’t know.

Can you talk to it using the mysql CLI client? If you can’t even do that, you may need to take it up with the MySQL folks (as it would definitely not be a Virtualmin issue if even msql cannot connect).

It gives me the same error when I try CLI. When I go to the log file via a GUI. I see the error log file is 33GB. I can’t open it. Is there a command line that I can use to view the error log?

less can open any size log, though might be slow with one this size. 33GB is very, very, very big for a log. Something terrible is probably happening there.

tail can show just the last few lines.

These are basic UNIX/Linux commands you should familiarize yourself with, as they’re very helpful when troubleshooting, especially in cases where things have gone pathological, and reading 33GB into a Perl process (which is what Webmin log viewer probably has to do) is a pathological case. Usually you can get documentation for a command with man less or man tail.

Every time I try to run the MySQL database server it increases in size, taking up disk quota. I’ve checked online about this error and there’s nothing.
I have used less statement to view the error log and thanks for the tip btw. I received this from this command,

root@example:~# sudo less /var/log/mysql/error.log

2022-04-21T00:00:06.757253Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.28-0ubuntu0.20.04.3) starting as process 144946
2022-04-21T00:00:06.806485Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-04-21T00:00:09.961008Z 1 [ERROR] [MY-011906] [InnoDB] Database page corruption on disk or a failed file read of page [page id: space=0, page number=5]. You may have to recover from a backup.
len 16384; hex 4c42ad300000000500000000000000000000000acc3a83b500070000000000000000000000000000000002759c01000000000000000200f20000000000000006ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff


What about those errors makes you believe it is quota related? MySQL limits are set to unlimited in that screenshot.

Users may be running into quotas, but MySQL does not. (Though I guess user databases could hit quotas, you haven’t shown us any evidence of that, maybe you’re just hiding it under the blacked out section.)

I see what could indicate hardware failing, or some other filesystem corruption (maybe just an abrupt shutdown of the system/VM).

Hi
Understood. I managed to re-install MySQL again and now I receive this error from journalctl -xe:

Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: Page may be a transaction sys>
Apr 21 10:36:32 example.me mysqld[89013]: 2022-04-21T10:36:32.318710Z 1 [ERROR]>
Apr 21 10:36:32 example.me mysqld[89013]:  len 16384; hex 4c42ad300000000500000>
Apr 21 10:36:32 example.me mysqld[89013]:                  a :  ;
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: End of page dump
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: Page may be a transaction sys>
Apr 21 10:36:32 example.me mysqld[89013]: 2022-04-21T10:36:32.382960Z 1 [ERROR]>
Apr 21 10:36:32 example.me mysqld[89013]:  len 16384; hex 4c42ad300000000500000>
Apr 21 10:36:32 example.me mysqld[89013]:                  a :  ;
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: End of page dump
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: Page may be a transaction sys>
Apr 21 10:36:32 example.me mysqld[89013]: 2022-04-21T10:36:32.443981Z 1 [ERROR]>
Apr 21 10:36:32 example.me mysqld[89013]:  len 16384; hex 4c42ad300000000500000>
Apr 21 10:36:32 example.me mysqld[89013]:                  a :  ;
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: End of page dump
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: Page may be a transaction sys>
Apr 21 10:36:32 example.me mysqld[89013]: 2022-04-21T10:36:32.504646Z 1 [ERROR]>
Apr 21 10:36:32 example.me mysqld[89013]:  len 16384; hex 4c42ad300000000500000>
Apr 21 10:36:32 example.me mysqld[89013]:                  a :  ;
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: End of page dump
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: Page may be a transaction sys>
Apr 21 10:36:32 example.me mysqld[89013]: 2022-04-21T10:36:32.569554Z 1 [ERROR]>
Apr 21 10:36:32 example.me mysqld[89013]:  len 16384; hex 4c42ad300000000500000>
lines 1044-1066/1066 (END)
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: Page may be a transaction system page
Apr 21 10:36:32 example.me mysqld[89013]: 2022-04-21T10:36:32.318710Z 1 [ERROR] [MY-011906] [InnoDB] Database page corruption on disk or a failed file read of page [page id: space=0, page >
Apr 21 10:36:32 example.me mysqld[89013]:  len 16384; hex 4c42ad300000000500000000000000000000000acc3a83b500070000000000000000000000000000000002759c01000000000000000200f20000000000000006ff>
Apr 21 10:36:32 example.me mysqld[89013]:                  a :  ;
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: End of page dump
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: Page may be a transaction system page
Apr 21 10:36:32 example.me mysqld[89013]: 2022-04-21T10:36:32.382960Z 1 [ERROR] [MY-011906] [InnoDB] Database page corruption on disk or a failed file read of page [page id: space=0, page >
Apr 21 10:36:32 example.me mysqld[89013]:  len 16384; hex 4c42ad300000000500000000000000000000000acc3a83b500070000000000000000000000000000000002759c01000000000000000200f20000000000000006ff>
Apr 21 10:36:32 example.me mysqld[89013]:                  a :  ;
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: End of page dump
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: Page may be a transaction system page
Apr 21 10:36:32 example.me mysqld[89013]: 2022-04-21T10:36:32.443981Z 1 [ERROR] [MY-011906] [InnoDB] Database page corruption on disk or a failed file read of page [page id: space=0, page >
Apr 21 10:36:32 example.me mysqld[89013]:  len 16384; hex 4c42ad300000000500000000000000000000000acc3a83b500070000000000000000000000000000000002759c01000000000000000200f20000000000000006ff>
Apr 21 10:36:32 example.me mysqld[89013]:                  a :  ;
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: End of page dump
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: Page may be a transaction system page
Apr 21 10:36:32 example.me mysqld[89013]: 2022-04-21T10:36:32.504646Z 1 [ERROR] [MY-011906] [InnoDB] Database page corruption on disk or a failed file read of page [page id: space=0, page >
Apr 21 10:36:32 example.me mysqld[89013]:  len 16384; hex 4c42ad300000000500000000000000000000000acc3a83b500070000000000000000000000000000000002759c01000000000000000200f20000000000000006ff>
Apr 21 10:36:32 example.me mysqld[89013]:                  a :  ;
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: End of page dump
Apr 21 10:36:32 example.me mysqld[89013]: InnoDB: Page may be a transaction system page
Apr 21 10:36:32 example.me mysqld[89013]: 2022-04-21T10:36:32.569554Z 1 [ERROR] [MY-011906] [InnoDB] Database page corruption on disk or a failed file read of page [page id: space=0, page >
Apr 21 10:36:32 example.me mysqld[89013]:  len 16384; hex 4c42ad300000000500000000000000000000000acc3a83b500070000000000000000000000000000000002759c01000000000000000200f20000000000000006ff>
~

Hi

You can close this post. My servers database is corrupt so I have to restore the server again. Thanks for the help nevertheless.

WTF? That’s not anything I would ever suggest you do. There is no reason to believe reinstalling the package would ever fix anything. Your problem was corrupt data files. The package does not contain those files (it’s your data, the stuff your apps put into the database).

1 Like

We had kind of the same where Hoster changed wrong disk.

After they put things back as it should , there was a problem related to databases and shutdown.
For us a restart solved it, some checks and repairs for Databases , was swapfile related as error pointed.

Think not related to exact same topic cause, but for readers who find this here and server or mysql down, check if you have working backups of all Databases , then try first a restart , and check log files again.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.