Bạn Tìm Gì Hôm Nay ...?
Tất cả đều có chỉ trong 1 nốt nhạc !
Nếu cần hỗ trợ chi tiết gọi 1900 9477
Đây là một lỗi xảy ra khi bạn cài Direct Admin và mật khẩu MySQL của tài khoản admin không đăng nhập được.
Hướng dẫn này dựa trên hướng dẫn của chính nhà phát triển Direct Admin:
https://docs.directadmin.com/other-hosting-services/mariadb-mysql/troubleshooting.html
Tham khảo hướng dẫn SSH tới VPS/Server tại link: https://kb.pavietnam.vn/ssh-toi-server-linux-bang-putty.html
Sau khi đã SSH thành công chúng ta tiếp tục với bước 2 để tiếp tục cấu hình.
tiến hành tạm dừng mysql và bật chế độ ” –skip-grant-tables ”
systemctl stop mysqld
systemctl set-environment MYSQLD_OPTS="--skip-grant-tables"
systemctl start mysqld
Tiến hành reset password cho user root:
mysql mysql -e "UPDATE mysql.user SET authentication_string=PASSWORD('rootpass') WHERE user='root'; FLUSH PRIVILEGES;"
lưu ý: trong đó rootpass là passsword login mysql của user root
Tiếp theo tiến hành restart mysql và tắt chế độ ” skip-grant-tables ”
systemctl unset-environment MYSQLD_OPTS
systemctl stop mysqld
systemctl start mysqld

mysql -uroot -p'rootpass' -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'rootpass';"
Tiếp theo kill mysql và khởi động lại:
killall -9 mysqld_safe
killall -9 mysqld
service mysqld start
mysql -uroot -p'rootpass'
ALTER USER 'da_admin'@'localhost' IDENTIFIED BY 'daadminpass';
GRANT ALL PRIVILEGES ON *.* TO da_admin@localhost WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit
========================================
P.A Việt Nam cung cấp đa dạng các cấu hình Máy Chủ Ảo và Máy Chủ Riêng
Cloud Server
Cloud Server Pro
Máy Chủ Riêng
Tham khảo các ưu đãi: https://www.pavietnam.vn/vn/tin-khuyen-mai/