How do I access a database in terminal?

Minh Phượng

New member
How do I access a database in terminal?
Answer
To access a specific database, type the following command
at the mysql> prompt, replacing dbname with the name of the database that you want to access: use dbname; Make sure you do not forget the semicolon at the end of the statement. After you access a database, you can run SQL queries, list tables, and so on.
 

Tìm kiếm

Back
Top