C:\Users\zsh>MysqL -h 127.0.0.1 -u root -p
Enter password: ****
Welcome to the MysqL monitor. Commands end with ; or \g.
Your MysqL connection id is 11 to server version: 5.0.27-community-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
MysqL> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| MysqL |
| test |
+--------------------+
3 rows in set (0.00 sec)
MysqL>
Enter password: ****
Welcome to the MysqL monitor. Commands end with ; or \g.
Your MysqL connection id is 11 to server version: 5.0.27-community-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
MysqL> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| MysqL |
| test |
+--------------------+
3 rows in set (0.00 sec)
MysqL>
这样是不行的:
C:\Users\zsh>test -h 127.0.0.1 -u root -p;
'test' 不是内部或外部命令,也不是可运行的程序或批处理文件。
C:\Users\zsh>test -h 127.0.0.1 -u root -p
'test' 不是内部或外部命令,也不是可运行的程序或批处理文件。
由此可见:
原文链接:https://www.f2er.com/mysql/530270.html