Devdit
 

วิธีเข้า MySQL ผ่าน Command Line

3.1K

สอนวิธีเข้า MySQL ผ่าน Command Line โดยใช้คำสั่ง mysql -uroot -p โดยตัวอย่างจะแนะนำวิธีการล็อกอินเข้าใช้งานโปรแกรมฐานข้อมูล MySQL ผ่าน Command Line ซึ่งเป็นวิธีที่ง่าย สะดวก และรวดเร็ว โดยมีรายละเอียดดังนี้

 

ตัวอย่าง วิธีเข้า MySQL ผ่าน Command Line

1. กดปุ่ม Windows + R เรียกโปรแกรม run จากนั้นพิมพ์ cmd ในช่องและกด enter

2. เข้า MySQL ด้วยคำสั่ง mysql -uroot -p กรณีไม่ได้กำหนดรหัสผ่าน MySQL ตรงช่อง Enter password: ให้กด enter ได้เลย

C:\Users\admin>mysql -uroot -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 19
Server version: 10.4.19-MariaDB mariadb.org binary distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
แก้ไข 2 ปีที่แล้ว
ชอบ
ลิ้งก์
แชร์
Devdit มีช่อง YouTube แล้ว
เราสร้างวิดีโอเกี่ยวกับเทคโนโลยี ทำตามง่ายๆ