1. 程式人生 > >mysql命令列連線

mysql命令列連線

MC:~ Smarter$ mysql -u usrname -h hostname -P port -D dbname -p

Enter password: 

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A




Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 25561133

Server version: 5.6.36-82.0-log Percona Server (GPL), Release 82.0, Revision 58e846a




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