How to connect to a MySQL database table and view

After using the client to connect to MySQL, use use keyword selection available databases

use databasename;

 

Information database, table, column, users, permissions, and tables are stored in a database, display the stored command Show

1) Display Database

 SHOW DATABASES;

2) obtaining the current available table database

show tables;

3) Display table column

show columns from customers; 等同于 describe customers; 

 4) Other statements show:

show status; display a wide range of server status information

show create database xxx; show create table xxx; display create statement

show grants; display security permissions granted to the user

show errors; show warnings; display server errors or warnings

 

Guess you like

Origin www.cnblogs.com/july23333/p/11722031.html