Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure the database port? #1

Closed
pYwnYN21 opened this issue Dec 10, 2019 · 2 comments
Closed

How to configure the database port? #1

pYwnYN21 opened this issue Dec 10, 2019 · 2 comments

Comments

@pYwnYN21
Copy link

I'm trying to connect this to a MySQL db, but the connection is through a port that's not 3306. How do I configure it?

@infostreams
Copy link
Owner

Hi! Thanks for opening the first issue 🎉

You can add any additional MySQL settings in the .db/<alias>/config/credentials.cnf file, where <alias> is the server alias you chose during installation, so for example localhost or staging or something. I should probably rename that file to connection.cnf instead of credentials.cnf, but alas.

Anyway, in that file, you add the following line:

port = 3307

to indicate that your MySQL server is running on port 3307. Adjust to whichever port your MySQL server is running on. If that works, please close the issue. Cheers!

@pYwnYN21
Copy link
Author

It seems a little weird because I needed to "db init" successfully on another DB in order to save the alias properly. Only then was I able to modify the config manually to my desired db.

Thanks, it works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants