MySQL + SQL · Lesson 32

MySQL Command Line Basics

MySQL CLI का Use

MySQL command-line client आपको terminal में सीधे SQL चलाने देता है।

Connect करना

mysql -u root -p
# पूछे जाने पर password डालें

उपयोगी CLI Commands

Commandक्या करता है
SHOW DATABASES;databases list
USE school;database select
SHOW TABLES;tables list
DESC students;table structure
\q या EXIT;बाहर निकलें

सारांश

  • mysql -u root -p से connect करें।
  • USE DB select करता है; SHOW/DESC explore; EXIT quit।
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।