亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4707 | 回復(fù): 1
打印 上一主題 下一主題

mysql -h登錄報錯不用-h正常的原因 [復(fù)制鏈接]

論壇徽章:
1
2015亞冠之西悉尼流浪者
日期:2015-05-18 14:38:40
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2016-03-18 21:01 |只看該作者 |倒序瀏覽
請問為什么-h登錄本機(jī)不行,但是不用-h是可以的,請問原因是什么?

-bash-4.1$ mysql -h192.168.56.102 -P4001 -uroot -proot
ERROR 1045 (28000): Access denied for user 'root'@'192.168.56.102' (using password: YES)


-bash-4.1$
-bash-4.1$ mysql -uroot -proot --socket=/data/data/4001/mysql.sock --port=4001
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.6.24-enterprise-commercial-advanced-log MySQL Enterprise Server - Advanced Edition (Commercial)

Copyright (c) 2000, 2013, 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>
mysql> select user,host from mysql.user;
+----------+----------------+
| user     | host           |
+----------+----------------+
| checksum | %              |
| root     | %              |
| root     | 127.0.0.1      |
| checksum | 192.168.56.102 |
| root     | 192.168.56.102 |
| checksum | 192.168.56.110 |
| root     | ::1            |
|          | localhost      |
| root     | localhost      |
|          | node03         |
| root     | node03         |
+----------+----------------+
11 rows in set (0.00 sec)

mysql>

論壇徽章:
2
IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-03-22 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-03-22 06:20:00
2 [報告]
發(fā)表于 2016-03-19 21:46 |只看該作者
登錄本機(jī)的話, mysql -uroot -p即可。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP