How to deal with the failure to connect to the database when building jpress with docker??

Alibaba cloud Q & A 2022-02-13 06:21:01 阅读数:498

deal failure connect database building

use docker build JPress, It is set at the terminal mysql Password : docker run --name bolgmysql -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=bolgdb hub.c.163.com/library/mysql

JPress stay 8080 The port is running , Stuck on the configuration page, saying that the user name and password are wrong ? Originally, I compiled it locally JPress, It's also running , The settings page found that... Is not supported mysql8.0, I don't really want to uninstall 8.0 install 5.7 Version of . So start all over again with docker build , I didn't expect to be docker If the account password is set in the, it still reports an error . You must uninstall the local mysql8.0 Do you ?




Take the answer 1:

Hello! , It seems to be a network problem . Please use docker inspect Get the right ip Address and then test whether it is feasible .


copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130620590841.html