• About Us
  • Contact
  • Trang chủ
  • Code
  • Linux
  • Virtualization
  • Mail
  • Tools
No Result
View All Result
System Zone
No Result
View All Result
Home Linux

Lỗi service mysql không thể start:[ERROR] mysqld: Table ‘./mysql/global_priv’ is marked as crashed

admin by admin
24 Tháng mười một, 2025
in Linux
0
0
SHARES
8
VIEWS
Share on FacebookShare on Twitter

Trạng thái lỗi:

[root@ctr979447 mysql]# systemctl status mysqld

.........

Aug 29 13:48:41 ctr979447.nhanhoa mysqld[6701]: 2025-08-29 13:48:41 0 [ERROR] mysqld: Table './mysql/global_priv' is marked as crashed and last (automatic?) repair failed
Aug 29 13:48:41 ctr979447.nhanhoa mysqld[6701]: 2025-08-29 13:48:41 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table './mysql/global_priv' is marked as crashed and last (automatic?) repair failed
Aug 29 13:48:41 ctr979447.nhanhoa mysqld[6701]: 2025-08-29 13:48:41 0 [ERROR] Aborting
Aug 29 13:48:42 ctr979447.nhanhoa systemd[1]: mariadb.service: main process exited, code=exited, status=1/FAILURE
Aug 29 13:48:42 ctr979447.nhanhoa systemd[1]: Failed to start MariaDB database server.
Aug 29 13:48:42 ctr979447.nhanhoa systemd[1]: Unit mariadb.service entered failed state.
Aug 29 13:48:42 ctr979447.nhanhoa systemd[1]: mariadb.service failed.

Nguyên nhân:

Related Posts

Cài đặt sử dụng Rclone trên Centos 7

Hướng dẫn viết script sync dữ liệu giữa 2 VPS linux qua SSH key

Hướng dẫn cài đặt MongoDB 5 trên centos 7

Hướng dẫn resize ổ cứng bằng Gparted trên centos 7

Lỗi do bảng mysql.global_privbị crash (hỏng). Đây là bảng chứa thông tin quyền truy cập (user, password, grant), nên nếu nó lỗi thì mysql không thể khởi động.

Cách xử lý:

SSH vào VPS thao tác các bước sau:

vi /etc/my.cnf thêm vào cuối cùng dòng:

skip-grant-tables

Khởi động lại mysql

systemctl restart mysqld

Đăng nhập vào mysql:

[root@ctr979447 mysql]# mysql
MariaDB [(none)]> USE mysql;
MariaDB [mysql]> REPAIR TABLE global_priv;

Xóa cấu hình skip-grant-tables

Mở lại file /etc/my.cnf xóa bỏ dòng skip-grant-tables

Khởi động lại mysql

systemctl restart mysqld

Sau khi restart dịch vụ hoạt động lại bình thường.

Tags: global_privis marked as crashedLỗi service mysqlmysql
Next Post

Fix lỗi Misdirected Request trên Plesk

0 0 đánh giá
Đánh giá bài viết
Theo dõi
Đăng nhập
Thông báo của
guest
guest
0 Góp ý
Cũ nhất
Mới nhất Được bỏ phiếu nhiều nhất
Phản hồi nội tuyến
Xem tất cả bình luận

Danh mục

  • Cpanel (8)
  • Directadmin (4)
  • Gsuite (1)
  • Kiss Daily Talk (3)
  • Lập trình web (7)
  • Linux (20)
  • Mail (2)
  • MDaemon (1)
  • Mongo DB (1)
  • Plesk (1)
  • Windows (2)
  • Xâm nhập thế giới hacker (4)
  • Zimbra (2)

Bài viết mới

  • Cài đặt sử dụng Rclone trên Centos 7
  • Điều chỉnh daily report trong Zimbra
  • Phân quyền user trong Zimbra
  • Fix lỗi Misdirected Request trên Plesk
  • Lỗi service mysql không thể start:[ERROR] mysqld: Table ‘./mysql/global_priv’ is marked as crashed
  • Mail
  • Virtualization
  • Lập trình web
  • Linux Administrator
  • Learning More

© 2025 SystemZone - Premium WordPress news & magazine theme by Aitemat.

No Result
View All Result
  • About Us
  • About Us
  • blog
  • Campaign
  • Cart
  • Checkout
  • Cửa hàng
  • Giỏ hàng
  • Giới thiệu
  • Home 2
  • IT STORY
  • Lập trình web
  • Learning More
  • Linux Administrator
  • Mail
  • My account
    • Wishlist
  • Privacy Policy
  • Sample Page
  • Thanh toán
  • Track your order
  • Trang chủ
  • Trang Mẫu
  • Virtualization
  • Sections
  • Rows / Columns
  • Sliders
  • Buttons
  • Titles / Dividers
  • Blog Posts
  • Mega Shop
  • Simple Slider
  • Banner Grids
  • Icon Box
  • Lightbox
  • Scroll To
  • Pages
    • About
    • Contact
    • FAQ
    • Portfolio
  • Map
  • Message box
  • Product Categories
  • Products
  • Share / follow icons
  • Tabs
  • Team Member
  • Testimonials

© 2025 SystemZone - Premium WordPress news & magazine theme by Aitemat.

wpDiscuz
0
0
Rất thích suy nghĩ của bạn, hãy bình luận.x
()
x
| Trả lời