Skip to content

Hướng Dẫn Allow Remote MySQL Databases Bằng cPanel

Bài viết này hướng dẫn bạn Allow Remote MySQL Databases Bằng cPanel. Nếu bạn cần hỗ trợ, xin vui lòng liên hệ VinaHost qua Hotline 1900 6046 ext.3, email về [email protected] hoặc chat với VinaHost qua livechat https://livechat.vinahost.vn/chat.php.

Hướng Dẫn Allow Remote MySQL Databases Bằng cPanel

B1: Trong giao diện cPanel, ở phần databases ta chọn Remote MySQL

Hướng Dẫn Allow Remote MySQL Databases Bằng cPanel

B2: ở phần Add Access Host, ta có thể thêm các host có thể allow để remote access database.

Hướng Dẫn Allow Remote MySQL Databases Bằng cPanel

Ta có thể thêm:

B3: Tạo một user để access vào databases

  • Do không thể dùng tài khoản host, ta cần phải tạo 1 user và phân quyền để có thể truy cấp vào DB
  • MySQL databases -> add new user

Hướng Dẫn Allow Remote MySQL Databases Bằng cPanel

B4: Add user vừa tạo vào databases ta cần access

  • MySQL databases -> Add User To Database

Hướng Dẫn Allow Remote MySQL Databases Bằng cPanel

  • Phân quyền cho user: Chọn vào all priviledge nếu muốn. Sau đó chọn make change

Hướng Dẫn Allow Remote MySQL Databases Bằng cPanel

B5: Access remote MySQL với lệnh : mysql -u -h -p’

  • mysql -u minhquang_1 -h 123.30.140.205 -p’quangquang192’

Allow Remote MySQL Databases

  • Khi ta dùng câu lệnh show databases thì chỉ thấy 1 databases mà ta đã add user vào.

Hướng Dẫn Allow Remote MySQL Databases Bằng cPanel

Chúc bạn thực hiện Allow Remote MySQL Databases Bằng cPanel thành công!

THAM KHẢO CÁC DỊCH VỤ TẠI VINAHOST

>> SERVER COLOCATION – CDN

>> CLOUD – VPS

>> HOSTING

>> EMAIL

>> WEBSITE

>> TÊN MIỀN