C:\Windows\System32>mysql -h localhost -P 3306 -u root -p
Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.19 MySQL Community Server (GPL)
Copyright (c) 2000, 2017, 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.
1
2
3
4
5
6
7
8
9
10
11
12
13
mysql> show processlist;
+----+------+-----------+------+---------+------+----------+---------------
+
| Id | User | Host | db | Command | Time | State | Info
|
+----+------+-----------+------+---------+------+----------+---------------
+
| 4 | root | localhost | NULL | Query | 0 | starting | show
processlist |
+----+------+-----------+------+---------+------+----------+---------------
+
1 row in set (0.03 sec)
1
2
3
4
5
6
7
评论19
最新资源