MYSQL failed to start

root@hostname:~# service mysql start
start: Job failed to start

I did install and reinstall it but still doesnt want to work

2 Replies

Are there any helpful error messages showing when you check the status of MySQL or the error log?

sudo service mysql status

cat /var/log/mysql/error.log | tail -40

I'd also check to confirm you aren't running out of disk space, since this could sometimes cause MySQL to fail to start:

df -h

Another thought is to make sure another service isn't already listening on port 3306:

ss -plunt | grep -i mysql

it is fixed , thank you

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