命令提示符下登录mysql数据库

2015-07-24 10:41:28 · 作者: · 浏览: 3
C:\Users\Administrator>mysql -h localhost -P 3390 -uroot -p      (-P 后面是端口号,P是大写字母)
Enter password: *********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 55
Server version: 5.6.21-log MySQL Community Server (GPL)

Copyright (c) 2000, 2014, 
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>