Git Product home page Git Product logo

Comments (2)

lkpopo avatar lkpopo commented on June 8, 2024

Debug了好久,终于终于找到原因了,在数据库连接池创建的时候就出问题了,返回到con是0,但是我就奇怪了是0应该会报错啊,就是不报也不知道为啥,既然数据库连接出问题,那就一个个尝试,发现是IP的问题,兄弟们顶我上去,我看不少人遇到这个问题了。

这个地方不要用localhost,用127.0.0.1就可以了。
connPool->init("127.0.0.1", "root", "root", "yourdb", 3306, 8);

from tinywebserver.

lkpopo avatar lkpopo commented on June 8, 2024

补充下午又重新装了一次,需要数据库版本一致5.7.29,什么发行的倒是无所谓吧,我是SUSE的。

from tinywebserver.

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.