我尝试使用ssh-tunnel连接到mySQL,但得到“Access denied for user 'bitrix 0'@'::1'(using password:YES)”I“,使用DBeaver。
但本地连接工作正常
[root@bitrixc2 ~]# mysql -u bitrix0 -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 23597
Server version: 5.7.39-42 Percona Server (GPL), Release 42, Revision b0a7dc2da2e
Copyright (c) 2009-2022 Percona LLC and/or its affiliates
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
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 WHERE user LIKE 'user' OR host LIKE 'localhost';
+--------------------+-----------+
| user | host |
+--------------------+-----------+
| SQLAdmin | localhost |
| bitrix0 | localhost |
| mysql.session | localhost |
| mysql.sys | localhost |
| root | localhost |
+--------------------+-----------+
6 rows in set (0.00 sec)
mysql>
型
我如何连接ssh-tunnel?或者可能是DBeaver有特殊的连接选项?我尝试用putty和DBeaver创建ssh-tunnel。两个变体都得到了相同的错误。
1条答案
按热度按时间xmjla07d1#
问题解决了。我用127.0.0.1主机创建了mysql用户
字符串