Comments (2)
试试用新的 docker-compose,MySQL 和 Java 一起装。
from ai-beehive.
[问题描述]
- 根据README的脚本命令安装了mysql,且启动成功,如下图所示:
![]()
- 修改docker-compose.yml文件,采用
docker-compose up -d命令启动后,启动报错,提示连不上数据库,请问这个IP地址是采用localhost,还有哪个地址?
有两种方案:
- Dockerfile_mysql启动MySQL实例,然后本地java启动去连接这个容器
- 用docker-compose启动java+MySQL
你这么做连接失败的原因是:
首先docker-compose中构建了局域网,里面定义了2个容器java2和mysql2。
你先使用Dockerfile_mysql启动了一个独立的mysql_1容器,导致mysql2容器无法启动(端口冲突),但java2应用程序启动成功了。java2使用JDBC URL指定了mysql2,但mysql2未启动,因此无法连接。
from ai-beehive.
Related Issues (20)
- docker中的日志文件在哪呀 没找到 HOT 1
- 请问下大家yml中api_reverse_proxy参数如何配置 HOT 1
- MJ V 操作后无法再次 UV
- v1.1.0 AccessToken 模式报错
- 打包为dist并部署到nginx后,前端无法显示实时聊天内容 HOT 2
- 为什么要限制对话的消息的总长度呢? HOT 6
- 增加对百度文心千帆大模型的支持
- NewBing 无法使用修复
- NewBing 待修复
- 发出后的信息没有换行了,出现平台和百度文心一言后台返回结果不一样。
- 前端每次读取内容,会偶尔出现 读取一半的json数据 HOT 1
- 增加 ChatGLM2-6B 开源模型
- Hardcoded Vulnerabilities HOT 2
- 代理地址的端口号怎么填写 HOT 3
- Midjourney参数配置都正确了,但是请求发到Discord的时候连接关闭 HOT 1
- 2.0.0 版本 chat_room,chat_message,/rate_limit 等接口404 HOT 1
- 将配置文件以JSON形式存入数据库的目的是什么? HOT 1
- token 验证目前存在bug 各种路径未生效 HOT 1
- 后端只有客户端接口,没有管理端接口吗 HOT 1
- 体验版发送消息报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai-beehive.