事例
➜ 1 mysql -uzixie -p'zixie' game < /temp/zixie_back.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
➜ 1 mysql -uzixie -p"zixie"
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 30
Server version: 8.0.13 Homebrew
Copyright (c) 2000, 2018, 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> use game;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+----------------+
| Tables_in_game |
+----------------+
| t_admin |
| t_adventure |
| t_advice |
| t_game |
| t_player |
| t_statistic |
| t_tips |
| t_userinput |
| t_vampire |
| t_vampirenum |
| t_vampiretimes |
| t_vampirewords |
+----------------+
12 rows in set (0.00 sec)
mysql>