• Về minhduy.vn
  • Đăng ký Hosting
  • Thiết kế Website
  • Khuyến mãi HOT
Hướng Dẫn Sử Dụng Dịch Vụ - Minh Duy Solutions
  • Trang chủ
  • Hosting
    • Hướng dẫn Hosting cPanel
    • Hướng dẫn Hosting DirectAdmin
  • Tên miền
  • Website
    • Hướng dẫn WordPress
    • Hướng dẫn Webmaster
  • Email Doanh Nghiệp
    • Office 365
    • Google Work Space
    • Email Zimbra
  • VPS – Máy chủ
    • Hướng dẫn Linux
    • Hướng dẫn DirectAdmin
  • Hướng dẫn chung
  • Góc ICT
No Result
View All Result
  • Trang chủ
  • Hosting
    • Hướng dẫn Hosting cPanel
    • Hướng dẫn Hosting DirectAdmin
  • Tên miền
  • Website
    • Hướng dẫn WordPress
    • Hướng dẫn Webmaster
  • Email Doanh Nghiệp
    • Office 365
    • Google Work Space
    • Email Zimbra
  • VPS – Máy chủ
    • Hướng dẫn Linux
    • Hướng dẫn DirectAdmin
  • Hướng dẫn chung
  • Góc ICT
No Result
View All Result
Hướng Dẫn Sử Dụng Dịch Vụ - Minh Duy Solutions
No Result
View All Result
Home Hướng dẫn máy chủ Hướng dẫn DirectAdmin

Hướng dẫn lấy thông tin mật khẩu mặc định MySQL root trên DirectAdmin

Minh Duy Solutions by Minh Duy Solutions
22/09/2021
Reading Time: 2 mins read
145 8
A A
0
474
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter

Trong DirectAdmin khi hoàn thành quá trình cài đặt, các tài khoản và thông tin mặc định được lưu vào một file setup.txt.

Với MySQL mật khẩu cho user root cũng được thiết lập trong quá trình cài đặt và viết vào setup.txt. Nếu bạn không thay đổi mật khẩu này, bạn có thể tìm thấy thông tin trong setup.txt, sử dụng lệnh dưới đây để xem nội dung của tập tin này:

[root@server ~]# cat /usr/local/directadmin/scripts/setup.txt
hostname=server.vps157.vn
email=admin@server.vps157.vn
mysql=NtncEitn
mysqluser=da_admin
adminname=admin
adminpass=ayFbF9BX
ns1=ns1.vps157.vn
ns2=ns2.vps157.vn
ip=202.92.5.157
netmask=255.255.255.0
uid=vps157.vn
lid=vps157.vn
services=services_es60_64.tar.gz

Mật khẩu của user root được lưu trữ trong các dòng bắt đầu với mysql =

Ta có thể sử dụng mật khẩu đó để đăng nhập MySQL

[root@server ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.5.31 MySQL Community Server (GPL)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

mysql> 

Hướng dẫn cách đăng nhập MySQL không cần phải nhập password root

Nếu bạn muốn truy cập mysql từ ssh hoặc giao diện điều khiển trực tiếp tạo ra một tập tin trong /root/dir gọi .my.cnf:

[root@server ~]# touch /root/.my.cnf

Và chỉnh sửa lại :

[root@server ~]# vi /root/.my.cnf

Thêm các dòng dưới đây:

[client]
user=root
password=XXXXXX

Điền mật khẩu với đèo bạn nhận được từ setup.txt, lưu file :wq và thoát. Sau bước này chỉ cần viết mysql để nhập MySQL giao diện điều khiển trực tiếp mà không cần mật khẩu.

[root@server ~]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 14
Server version: 5.5.31 MySQL Community Server (GPL)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

mysql>

Chúc bạn thực hiện thành công !

4.4/5 - (1619 bình chọn)
Tags: DirectAdmin
Share190Tweet119
Minh Duy Solutions

Minh Duy Solutions

Bài viết liên quan

huong dan xoa clamav tren vps directadmin 4417
Hướng dẫn DirectAdmin

Hướng dẫn xóa ClamAV Trên VPS DirectAdmin

07/11/2024
1.5k
huong dan cai dat modsecurity tren directadmin 4221 1
Hướng dẫn DirectAdmin

Hướng dẫn cài đặt ModSecurity trên Directadmin

25/05/2024
1.7k
csf firewall
Hướng dẫn DirectAdmin

Cài đặt CSF lên DirectAdmin

28/05/2023
1.6k
sua loi domain is already processing an ssl request tren directadmin 3758 1
Hướng dẫn DirectAdmin

Sửa lỗi Domain is already processing an SSL request trên DirectAdmin

31/03/2023
1.8k
df4857f61b8f21529a251a29271076cd
Hướng dẫn DirectAdmin

Hướng dẫn cài đặt NGINX + Apache trên Directadmin

02/10/2022
1.7k
1641eb63aaf5c390fc85beee96e21122
Hướng dẫn DirectAdmin

Hướng dẫn cài đặt OpenLiteSpeed trên VPS sử dụng DirectAdmin

02/10/2022
1.8k

Để lại một bình luận Hủy

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

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

No Result
View All Result

Recommended.

qu n tr office 365 th m t i kho n ng i d ng cu i tr n office 365

Quản trị Office 365: Thêm tài khoản người dùng cuối trên Office 365

26/09/2021
1.5k
wordpress bg medblue

Chuyển hosting hay đổi tên miền với Duplicator

24/09/2021
1.5k

Trending.

outlook là gì

Tạo rules trên Microsoft Outlook

29/05/2026
1.5k
outlook la gi cach cai dat va su dung outlook cho nguoi moi bat dau

Thay đổi thời gian cập nhật gửi nhận Email mới trên Outlook

29/05/2026
1.5k
cach tai toan bo email tren gmail ve may tinh de luu tru 4763

Cách tải toàn bộ email trên Gmail về máy tính để lưu trữ

10/04/2026
1.5k
Tên miền website là gì?

Vòng đời tên miền Việt Nam và Quốc Tế cập nhật năm 2026

07/04/2026
1.5k
binhluan

Cách ẩn comment trên Fanpage để tránh bị cướp khách hàng

09/12/2025
1.5k
Wiki Minh Duy Solutions

WIKI.MINHDUY.VN

Chuyên trang hướng dẫn sử dụng dịch vụ của Minh Duy Solutions

DMCA.com Protection Status

Danh mục

  • GSuite
  • aaPanel
  • Góc ICT
  • Thiết Kế Đồ Hoạ
  • SEO
  • Hướng dẫn WHMCS
  • Hướng dẫn WordPress
  • Email Zimbra
  • Hướng dẫn DirectAdmin
  • Hướng dẫn Hosting cPanel
  • Hướng dẫn Hosting
  • Office 365
  • Hướng dẫn Website
  • Hướng dẫn Linux
  • Hướng dẫn Hosting DirectAdmin
  • Google Work Space
  • Hướng dẫn Webmaster
  • Hướng dẫn máy chủ
  • Hướng dẫn Email Doanh Nghiệp
  • Hướng dẫn Tên miền
  • Hướng dẫn chung
  • Uncategorized

Thẻ

AFC apt-get update apt-get upgrade category chủ thể cPanel debian DirectAdmin email doanh nghiệp Environment Variables giải nén Google Workspace G Suite hosting ioncube khôi phục mật khẩu linux nginx nmap nodejs npm Office 365 OneDrive Outlook out of memory path Paypal phpmyadmin SMTP. GMail SSH sudo swap Symbolic Link tar tar.gz thông báo tên miền tên miền ubuntu user whois WooCommerce WordPress wordpress cơ bản wp rocket Zimbra
  • Về minhduy.vn
  • Đăng ký Hosting
  • Thiết kế Website
  • Khuyến mãi HOT

Copyright © Hướng dẫn Minh Duy Solutions

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
×
    No Result
    View All Result
    • Trang chủ
    • Hosting
      • Hướng dẫn Hosting cPanel
      • Hướng dẫn Hosting DirectAdmin
    • Tên miền
    • Website
      • Hướng dẫn WordPress
      • Hướng dẫn Webmaster
    • Email Doanh Nghiệp
      • Office 365
      • Google Work Space
      • Email Zimbra
    • VPS – Máy chủ
      • Hướng dẫn Linux
      • Hướng dẫn DirectAdmin
    • Hướng dẫn chung
    • Góc ICT

    Copyright © Hướng dẫn Minh Duy Solutions