Giter Club home page Giter Club logo

Comments (5)

valid22 avatar valid22 commented on May 30, 2024 1

That was quite detailed, and I appreciate it. You've put a lot of work on that.

The database structure part: You are good to go (you could have just run DatabasePort.py, by giving old-db name as a dummy database :male_shrug:)

Now to the issue, it seems MySQL is unable to find the server on default IP/Port it's supposed to run. Clarify these, make sure your didn't set custom port for MySQL server, if so you might wanna change some codes (and get a coffee). Also that your MySQL database is hosted on your remote environment (localhost)

Next I would suggest you to try these changes, open in a text editor

Timeline/Database/__init__.py, line 38

Try changing that line to

Registry.DBPOOL = ReconnectingMySQLConnectionPool('MySQLdb', user=user, passwd=passd, db=db, cp_reconnect=True, port='3306', host='127.0.0.1')

Sometimes, depending upon the os, MySQL accepts connection only via 127.0.0.1. If above doesn't work, you can try changing host='...' to host='0.0.0.0'.

Else, if you are hosting your database on a different server (outside your vps), change host to that server IP (make sure in this case you allow remote connection)

And (yh while drinking your coffee) if you have set custom port, change the port parameter value too

from timeline.

Brianelvio avatar Brianelvio commented on May 30, 2024 1

Haha no worries! I get that it can be hard to reproduce or answer if info is missing or undetailed.

Thanks for the fix! It's now connecting like it should.

Unfortunately getting another error thrown:

image

Looking into this myself now, but if you might know the fix before I find it I'd appreciate it ;)

P.s. got my coffee =)

from timeline.

valid22 avatar valid22 commented on May 30, 2024

Did I forget to mention? Timeline has some self-healing capabilities 😋. Just restart the server and check if that error still persists.

from timeline.

Brianelvio avatar Brianelvio commented on May 30, 2024

Brilliant my dude!

Thanks for creating this piece of art 🥇

It's been a long time since I've been working in this scene, me and a friend were, back in the day the first operational cpps with a webclient. Back then that was the shizzle, eventually got the game running on SmartFoxServer. Unfortunately most of that data is lost. Talking +/- 10 years ago 😝

Anyways, thanks for the quick replies as well!

from timeline.

valid22 avatar valid22 commented on May 30, 2024

Sweet! Have a great (coffee) day!

from timeline.

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.