Code Monkey home page Code Monkey logo

Comments (4)

wp-jackliu avatar wp-jackliu commented on August 15, 2024 2

这个问题吧,我说下我解决的步骤。
开始也是报错,mysql连接不上。其实原因是配置文件里面要配置下使用ip或者其他方式连接。 初始是用localhost来的。docker里面有没有localhost的mysql,所以肯定错误。
步骤1. 先安装一个mysql或者mariadb,docker或者自有mysql,启动即可。
步骤2.修改配置文件,将mysql改为步骤1中启动mysql的ip地址。(确保步骤1中的mysql可以外部连接)
步骤3.启动docker。应该就可以了。

建议作者 @TrumanDu 来一份docker-compose吧,这样properties中mysql直接用,,不然我看问题中大都是mysql连接不上的。。或者给一份说明。

from kcenter.

lizeyun avatar lizeyun commented on August 15, 2024

参考了其他issue ,本地起了一个mariadb, 结果还是不行

from kcenter.

TrumanDu avatar TrumanDu commented on August 15, 2024

@lizeyun 你的mysql可以用客户端访问吗?还有你的具体过程可以描述一下吗?比如机器是否存在多网卡等。程序是否是使用docker启动?可否先尝试全部用docker 部署。目前的log我无法确定是哪里的问题。127....更换成你本机ip.确保客户端可以连接mysql。

from kcenter.

TrumanDu avatar TrumanDu commented on August 15, 2024

@lizeyun 我先关闭该issue,如果你还有问题,再重新打开。

from kcenter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.