File tree Expand file tree Collapse file tree 1 file changed +51
-2
lines changed
Expand file tree Collapse file tree 1 file changed +51
-2
lines changed Original file line number Diff line number Diff line change @@ -478,7 +478,8 @@ password: qaz123
478478
479479```
480480
481- 如果服务器运行报错,记得查看mysql端口` show global variables like 'port'; ` 和java进程是否被占用` ps -ef |grep java ` ,关闭进程` kill -9 PID号 ` 。<br >
481+ 如果服务器运行报错,记得查看mysql端口` show global variables like 'port'; ` 、查看表名` show databases; ` 、创建表` create database 表名 ` <br >
482+ java进程是否被占用` ps -ef |grep java ` ,关闭进程` kill -9 PID号 ` 。<br >
482483
483484``` js
484485// mysql
@@ -504,7 +505,55 @@ mysql> show global variables like 'port';
504505+ -------------- -+ ------ -+
5055061 row in set (0.03 sec)
506507
507- mysql>
508+ mysql> show databases;
509+ + -------------------- +
510+ | Database |
511+ + -------------------- +
512+ | information_schema |
513+ | micronaut_tz |
514+ | mysql |
515+ | performance_schema |
516+ | sys |
517+ + -------------------- +
518+ 5 rows in set (0.01 sec)
519+
520+ // 创建表
521+ mysql> create database liu;
522+ Query OK , 1 row affected (0.03 sec)
523+
524+ mysql> show databases;
525+ + -------------------- +
526+ | Database |
527+ + -------------------- +
528+ | information_schema |
529+ | liu |
530+ | micronaut_tz |
531+ | mysql |
532+ | performance_schema |
533+ | sys |
534+ + -------------------- +
535+ 6 rows in set (0.00 sec)
536+
537+ // 删除表
538+ mysql> drop database liu;
539+ Query OK , 0 rows affected (0.06 sec)
540+
541+ mysql> show databases;
542+ + -------------------- +
543+ | Database |
544+ + -------------------- +
545+ | information_schema |
546+ | micronaut_tz |
547+ | mysql |
548+ | performance_schema |
549+ | sys |
550+ + -------------------- +
551+ 5 rows in set (0.00 sec)
552+
553+ mysql> \q
554+ Bye
555+ apple@appledeMacBook- Air ~ %
556+
508557
509558// 进程占用
510559apple@appledeMacBook- Air ~ % ps - ef| grep java
You can’t perform that action at this time.
0 commit comments