Saturday , July 27 2024

Resolve: ERROR! MySQL is running but PID file could not be found

1
# service mysqld status

Khi chạy lệnh trên các bạn sẽ thấy lỗi như sau:

1
ERROR! MySQL is running but PID file could not be found

Các bạn stop rồi start MySQL xem sao:

1
2
# service mysqld stop
# service mysqld start

Kết quả trả về tương tự như bên dưới:

1
Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/***.***.com.pid).

Vậy cách xử lý như sau:

1
2
# killall -9 mysql mysqld
# /etc/init.d/mysqld start

Đầu tiên tắt tất cả chương trình, dịch vụ liên quan tới mysql, sau đó start lại mysql là xong.

Chúc các bạn thành công!

About Ngo Thang IT

Check Also

login ssh root password vps google cloud

Cách đăng nhập SSH root bằng mật khẩu trên VPS Google Cloud

Xin chào, bạn đã tạo được VPS (VM Instance) trên Google Cloud nhưng muốn đăng …

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Đăng Ký Nhận Tin Qua Email

Nhận thông tin bổ ích về WordPress, Hosting, Thủ thuật website, Download miễn phí....và các phần quà hấp dẫn qua email.

* là bắt buộc