wordpress Error establishing a database connection

root@localhost:/var/lib/mysql# systemctl status mysql.service
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2023-01-06 12:11:30 HKT; 98ms ago
Process: 52319 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Process: 52327 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
Main PID: 52327 (code=exited, status=1/FAILURE)
Status: "Server startup in progress"
Error: 2 (No such file or directory)

Jan 06 12:11:30 localhost systemd[1]: Failed to start MySQL Community Server.

1 Reply

move binlog.index oldbinlog.index

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct