MySQL 连接方式
Enter password: *******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.5.20-log MySQL Community Server (GPL)
Copyright (c) 2000, 2011, 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>
*************************** 1. row ***************************
user: root
host: localhost
password: *11B9ACA21786F766739D0EB1483C5F64212B81AC
*************************** 2. row ***************************
user: root
host: 127.0.0.1
password: *11B9ACA21786F766739D0EB1483C5F64212B81AC
*************************** 3. row ***************************
user: gechong
host: localhost
password: *7AE39BE5035D5C32361400FF7DEDD757AA76896A
3 rows in set (0.02 sec)
mysql> SHOW VARIABLES LIKE ‘socket‘;
+---------------+-----------------+
| Variable_name | Value |
+---------------+-----------------+
| socket | /tmp/mysql.sock |
+---------------+-----------------+
1 row in set (0.00 sec)
#mysql -uroot -S/tmp/mysql.sock
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。