Code Monkey home page Code Monkey logo

Comments (8)

josegonzalez avatar josegonzalez commented on August 16, 2024

Does your database dump accidentally overwrite the mysql user?

from dokku-mysql.

nikhil-bhandari avatar nikhil-bhandari commented on August 16, 2024

Thanks for the prompt response!

I did a grep on the DB dump for "mysql" and the only result that returned was RDS url.

I don't think that dump is messing up with "mysql" database or user.

from dokku-mysql.

josegonzalez avatar josegonzalez commented on August 16, 2024

What happens when you run dokku mysql:connect re_data? Can you connect/query your database?

from dokku-mysql.

nikhil-bhandari avatar nikhil-bhandari commented on August 16, 2024

Yes that works fine!

from dokku-mysql.

josegonzalez avatar josegonzalez commented on August 16, 2024

So are you sure the CLEAR_DATABASE_URL is set correctly?

from dokku-mysql.

nikhil-bhandari avatar nikhil-bhandari commented on August 16, 2024

Yes, CLEAR_DATABASE_URL matches DATABASE_URL set by dokku-mysql

CLEARDB_DATABASE_URL:            mysql://mysql:480ba76c3fa51075@dokku-mysql-re-data:3306/re_data
DATABASE_URL:                    mysql://mysql:480ba76c3fa51075@dokku-mysql-re-data:3306/re_data

*Intentionally including password.

from dokku-mysql.

josegonzalez avatar josegonzalez commented on August 16, 2024

iirc we use that same username/pass for mysql:connect, so this sounds like its not related to dokku.

What happens if you mysql:expose the service and try to connect to it using a gui client?

from dokku-mysql.

nikhil-bhandari avatar nikhil-bhandari commented on August 16, 2024

I think it was something related to the framework that we were using.

I removed the port number and it started working.

Thanks for helping!

from dokku-mysql.

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.