程序员

Mysql-Terminal-命令使用

2018-12-26  本文已影响14人  泥称已被栈用
$ mysql -u root -p
$ mysql -h host -D data_base -u user_name -p
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
...
mysql> user database_name;
Database changed
mysql> show tables;
+-------------------------------+
| TABLES_IN_XXXXX_XXXXX        |
+-------------------------------+
...
mysql> show create table table_name;
mysql> show columns from table_name;
mysql> show index from table_name;
上一篇下一篇

猜你喜欢

热点阅读