【 TiDB 使用环境】测试环境
【复现路径】部署一个新的集群后,首次连接,root 账户显示Access denied. 我记得新的集群,root用户默认是没有密码的。
alpha@node2:~/tidb$ mysql -h node2 -P 4100 -u root
ERROR 1045 (28000): Access denied for user ‘root’@‘192.168.211.242’ (using password: NO)
alpha@node2:~/tidb$
alpha@node2:~/tidb$ mysql -h node2 -P 4100 -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user ‘root’@‘192.168.211.242’ (using password: YES)
alpha@node2:~/tidb$
alpha@node2:~/tidb$
alpha@node2:~/tidb$ tiup cluster display tidb-v8
Cluster type: tidb
Cluster name: tidb-v8
Cluster version: v8.1.0
Deploy user: alpha
SSH type: builtin
Dashboard URL: http://192.168.211.243:2379/dashboard
Grafana URL: http://192.168.211.243:3000
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
192.168.211.243:9096 alertmanager 192.168.211.243 9096/9097 linux/x86_64 Up /home/alpha/tidb-data-v8/alertmanager-9096 /home/alpha/tidb-deploy-v8/alertmanager-9096
192.168.211.243:3000 grafana 192.168.211.243 3000 linux/x86_64 Up - /home/alpha/tidb-deploy-v8/grafana-3000
192.168.211.243:2379 pd 192.168.211.243 2379/2380 linux/x86_64 Up|L|UI /home/alpha/tidb-data-v8/pd-2379 /home/alpha/tidb-deploy-v8/pd-2379
192.168.211.243:9090 prometheus 192.168.211.243 9090/12020 linux/x86_64 Up /home/alpha/tidb-data-v8/prometheus-9090 /home/alpha/tidb-deploy-v8/prometheus-9090
192.168.211.241:4100 tidb 192.168.211.241 4100/10180 linux/x86_64 Up - /home/alpha/tidb-deploy-v8/tidb-4100
192.168.211.242:4100 tidb 192.168.211.242 4100/10180 linux/x86_64 Up - /home/alpha/tidb-deploy-v8/tidb-4100
192.168.211.243:4100 tidb 192.168.211.243 4100/10180 linux/x86_64 Up - /home/alpha/tidb-deploy-v8/tidb-4100
192.168.211.241:20260 tikv 192.168.211.241 20260/20280 linux/x86_64 Up /home/alpha/tidb-data-v8/tikv-20260 /home/alpha/tidb-deploy-v8/tikv-20260
192.168.211.242:20260 tikv 192.168.211.242 20260/20280 linux/x86_64 Up /home/alpha/tidb-data-v8/tikv-20260 /home/alpha/tidb-deploy-v8/tikv-20260
192.168.211.243:20260 tikv 192.168.211.243 20260/20280 linux/x86_64 Up /home/alpha/tidb-data-v8/tikv-20260 /home/alpha/tidb-deploy-v8/tikv-20260
Total nodes: 10
alpha@node2:~/tidb$
【遇到的问题:问题现象及影响】集群创建后,无法连接。
【资源配置】
【附件:截图/日志/监控】