Không tìm thấy trang phpmyadmin của HestiaCP

Sự cố này xuất hiện trên Bảng điều khiển Hestia (HestiaCP v1. 5. 10) chạy dưới hương vị distro Debian 11 (Bullseye) với MariaDB 10. 6. 7 Database Server cài trên máy. Máy chủ Bare-metal này có Bộ nhớ 64GB (RAM), 16 lõi CPU và Bộ nhớ 1TB với Phần mềm RAID 1. Nó chạy dưới cấu hình của Apache/2. 4. 52 (Debian) với mod_fcgid/2. 3. 9 và OpenSSL/1. 1. 1k, Nginx Reverse Proxy và PHP Phiên bản 7. 4. 28. Trường hợp nhật ký lỗi như sau, tôi đã tìm thấy khi thử đăng nhập vào phpMyAdmin

Cannot log in to the MySQL servermysqli::real_connect(): (HY000/1698): Access denied for user 'root'@'localhost'

Để giải quyết vấn đề này, chỉ cần kích hoạt MariaDB 10. 6 máy chủ cơ sở dữ liệu (mysql. dịch vụ) bằng lệnh sau

$ systemctl enable mysql.service

Sau đó, bạn cần bảo mật Cài đặt MariaDB của mình bằng lệnh bên dưới và đảm bảo đặt mật khẩu gốc thích hợp cho tài khoản quản trị MySQL (đặc quyền siêu người dùng). Không có nó, bạn không thể kết nối với máy chủ cơ sở dữ liệu qua phpMyAdmin hoặc bất kỳ GUI dựa trên web nào khác cho hệ thống quản lý cơ sở dữ liệu quan hệ (RDBMS)

Xin lưu ý chỉ cần nhấn ENTER trên màn hình nhắc Enter current password for root (enter for none)

$ mysql_secure_installationNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MariaDB to secure it, we'll need the current password for the root user. If you've just installed MariaDB, and haven't set the root password yet, you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password or using the unix_socket ensures that nobody can log into the MariaDB root user without the proper authorisation. You already have your root account protected, so you can safely answer 'n'. Switch to unix_socket authentication [Y/n] n .. skipping. You already have your root account protected, so you can safely answer 'n'. Change the root password? [Y/n] y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. .. Success! By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] y .. Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] y .. Success! By default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] y - Dropping test database... .. Success! - Removing privileges on test database... .. Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] y .. Success! Cleaning up... All done! If you've completed all of the above steps, your MariaDB installation should now be secure. Thanks for using MariaDB! [email protected] # mysql -V mysql Ver 15.1 Distrib 10.6.7-MariaDB, for debian-linux-gnu (x86_64) using readline EditLine wrapper

OK, vậy là xong, bạn có thể thử các giải pháp trên nếu bạn gặp sự cố tương tự trên Bảng điều khiển Hestia của mình

  • THẺ
  • apache/2. 4. 52
  • Máy chủ cơ sở dữ liệu
  • Debian 11 (Mắt bò)
  • DebianLinux
  • HestiaCP v1. 5. 10
  • MariaDB 10. 6. 7
  • mod_fcgid/2. 3. 9
  • Máy chủ MySQL
  • Proxy đảo ngược Nginx
  • OpenSSL/1. 1. 1k
  • phpMyAdmin

Facebook

Twitter

Pinterest

WhatsApp

liên kết

Bài viết trước Cách cài đặt Nginx, PHP-FPM & MariaDB trên Rocky Linux 8. 5

Bài viết tiếp theo Cách cài đặt MySQL 8. 0. 26 trên AlmaLinux 8. 5

Bayu

ĐỂ LẠI MỘT TRẢ LỜI

Vui lòng nhập nhận xét của bạn

Vui lòng nhập tên của bạn vào đây

Bạn đã nhập sai địa chỉ email

Vui lòng nhập địa chỉ email của bạn vào đây

Lưu tên, email và trang web của tôi trong trình duyệt này cho lần bình luận tiếp theo

Xác minh captcha không thành công

Điểm người dùng CAPTCHA không thành công. Xin vui lòng liên hệ với chúng tôi

Δ

Trang web này sử dụng Akismet để giảm thư rác. Tìm hiểu cách dữ liệu nhận xét của bạn được xử lý

Kediri

những đám mây u ám

nhập vị trí

23. 4 ° C

23. 4 °

23. 4 °

94%

0. 6kmh

100%

thứ

23 °

thứ sáu

29 °

Đã ngồi

28 °

Mặt trời

29 °

Thứ hai

30 °

0Người hâm mộThích

0Người theo dõi

0Người theo dõiTheo dõi

0Người theo dõiTheo dõi

66Người theo dõiTheo dõi

1.920Người đăng kýĐăng ký

BÀI VIẾT KHÁC

Cách cài đặt MySQL 8. 0 trên Debian 10 “Buster”

Bayu

Trong hướng dẫn hôm nay, chúng tôi sẽ hướng dẫn bạn cách cài đặt và định cấu hình MySQL 8. 0 trên Debian 10 "Buster". mysql 8. 0 là hiện tại

Chủ đề