登录
C:\Users\xiaomi>mysql -uroot -p
Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.0.87-community-nt MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.退出
mysql> quit
Bye
说明:
1. mysql -uroot -p
不能写分号
2. quit
写不写分号,其实都无所谓的
3. 建议初学着多实用命令行的方式去使用mysql,可以快速熟悉mysql语句的使用,企业笔试,常考!
版权声明:本文为FairyKunKun原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。