【发布时间】:2021-07-05 15:39:21
【问题描述】:
我已经运行了这些命令:
docker run --name mysql-standalone -e
MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=test -e MYSQL_USER=sa -e MYSQL_PASSWORD=password -d mysql:5.6
然后
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
35da304532c8 mysql:5.6 "docker-entrypoint.s…" 4 hours ago Up 4 hours 3306/tcp mysql-standalone
docker exec -it mysql-standalone bash
root@35da304532c8:/# mysql -uroot -p -A
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.6.51 MySQL Community Server (GPL)
Copyright (c) 2000, 2021, 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>
但是在尝试通过 dbeaver 连接时,我得到了类似这样的东西
我哪里做错了?
【问题讨论】: