MySQL 基本命令(一)
[root@master bin]# mysql -u root -p mysql
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.6.16 Source distribution
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select host,user from user;
+-----------+------+
| host | user |
+-----------+------+
| 127.0.0.1 | root |
| ::1 | root |
| localhost | root |
| master | root |
+-----------+------+
4 rows in set (0.00 sec)
mysql> select version();
+-----------+
| version() |
+-----------+
| 5.6.16 |
+-----------+
1 row in set (0.00 sec)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
+--------------------+
3 rows in set (0.00 sec)
mysql> use mysql
Database changed
mysql> show tables;
+---------------------------+
| Tables_in_mysql |
+---------------------------+
| columns_priv |
| db |
| event |
| func |
| general_log |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| innodb_index_stats |
| innodb_table_stats |
| ndb_binlog_index |
| plugin |
| proc |
| procs_priv |
| proxies_priv |
| servers |
| slave_master_info |
| slave_relay_log_info |
| slave_worker_info |
| slow_log |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| user |
+---------------------------+
28 rows in set (0.00 sec)
mysql>
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.6.16 Source distribution
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select host,user from user;
+-----------+------+
| host | user |
+-----------+------+
| 127.0.0.1 | root |
| ::1 | root |
| localhost | root |
| master | root |
+-----------+------+
4 rows in set (0.00 sec)
mysql> select version();
+-----------+
| version() |
+-----------+
| 5.6.16 |
+-----------+
1 row in set (0.00 sec)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
+--------------------+
3 rows in set (0.00 sec)
mysql> use mysql
Database changed
mysql> show tables;
+---------------------------+
| Tables_in_mysql |
+---------------------------+
| columns_priv |
| db |
| event |
| func |
| general_log |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| innodb_index_stats |
| innodb_table_stats |
| ndb_binlog_index |
| plugin |
| proc |
| procs_priv |
| proxies_priv |
| servers |
| slave_master_info |
| slave_relay_log_info |
| slave_worker_info |
| slow_log |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| user |
+---------------------------+
28 rows in set (0.00 sec)
mysql>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22275400/viewspace-1086108/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL基本操作命令MySql
- MySQL基本命令總結MySql
- mysql最基本使用命令MySql
- 1-03:基本的MySQL命令MySql
- mysql資料庫基本命令MySql資料庫
- mongo基本命令(一)Go
- MySQL基本概念【一】MySql
- Linux基本命令一Linux
- Linux基本命令學習之一:Linux基本命令Linux
- Linux-MySQL基本命令-SQL語句LinuxMySql
- linux基本命令介紹(一)Linux
- 學習Linux基本命令(一)Linux
- Maven的一些基本命令Maven
- Postgres 資料庫(一)基本命令資料庫
- MySQL的安裝以及基本的管理命令和設定MySql
- 基本操作命令
- 基本dos命令
- docker基本命令筆記第一冊Docker筆記
- 11gr2 rac 基本管理命令(一)
- 熟悉shell的一些基本命令
- Elasticsearch 基本命令Elasticsearch
- shell基本命令
- docker基本命令Docker
- docker 基本命令Docker
- redis基本命令Redis
- Maven基本操作命令Maven
- UNIX基本命令
- scp命令基本用法
- MongoDB基本管理命令MongoDB
- MongoDB 基本命令MongoDB
- rman 基本命令
- svn基本命令
- kvm基本操作命令
- git基本命令Git
- 基本的Dos命令
- MySQL基本使用MySql
- MySQL基本管理MySql
- MySQL基本配置MySql