1Panel icon indicating copy to clipboard operation
1Panel copied to clipboard

[QUESTION] MySQL 8.0.33 无法启动

Open benzBrake opened this issue 2 years ago • 1 comments

请描述您的问题

VPS 配置 root@s04:~# free -m total used free shared buff/cache available Mem: 3933 247 751 0 2935 3403 Swap: 0 0 0 root@s04:~# cat /proc/cpuinfo | grep cores cpu cores : 2 cpu cores : 2 root@s04:~# cat /etc/*-release ID="genericcloud" VERSION="20220503-998" PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

安装 MySQL 8.0.33,容器创建成功,启动时报错 错误日志:

服务内部错误: stderr: Container 1Panel-mysql-uPy7 Starting Error response from daemon: driver failed programming external connectivity on endpoint 1Panel-mysql-uPy7 (d2a3aad9b037a45610d9f07d1528b3a8a1b7855ee55133fe8a4433caf1242df3): Error starting userland proxy: listen tcp4 127.0.0.1:3306: bind: cannot assign requested address

benzBrake avatar Jun 08 '23 11:06 benzBrake

尝试修改 compose 文件,把端口绑定到 eth0 的内网 IP 就可以正常启动了

        ports:
            - 内网IP:${PANEL_APP_PORT_HTTP}:3306

benzBrake avatar Jun 08 '23 13:06 benzBrake