• 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
A A
0
473
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
Share189Tweet118
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.5k
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.7k
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.

zimbra

Tạo và xóa chữ ký trên Zimbra Webmail

22/09/2021
1.7k
l u b n nh p t ng yprtdr9t0ws

Quản trị Office 365: Thêm tên miền vào Office 365 bằng CloudFlare

26/09/2021
1.5k

Trending.

cach tao doi quoc gia cho tai khoan google 4082

Cách tạo (đổi quốc gia) cho tài khoản Google

24/01/2024
27.1k

Hướng dẫn yêu cầu Canva hủy gói đăng ký và yêu cầu hoàn tiền Canva

12/04/2025
2.6k
cach tao doi quoc gia cho tai khoan google 4082

Cách xóa hồ sơ thanh toán tài khoản Google

24/01/2024
6.1k
Microsoft Support and Recovery Assistant

Hướng dẫn gỡ bỏ tận gốc Microsoft Office ra khỏi máy tính bằng phần mềm của Microsoft

22/07/2024
2.8k
57acc582dde37df0a76107d2fb2448d8

Cách Ngắt Link Ảnh Trong Adobe Illustrator, Đơn Giản, Hiệu Quả

04/10/2022
16.4k
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

  • aaPanel
  • Góc ICT
  • Thiết Kế Đồ Hoạ
  • SEO
  • Hướng dẫn WHMCS
  • Hướng dẫn Hosting
  • Hướng dẫn WordPress
  • Email Zimbra
  • Hướng dẫn DirectAdmin
  • Hướng dẫn Hosting cPanel
  • 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 © 2021 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

Add New Playlist

×
    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 © 2021 Hướng dẫn Minh Duy Solutions