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

Help needs: MySQLNonTransientConnectionException #1072

Open
Danissss opened this issue Sep 25, 2020 · 0 comments
Open

Help needs: MySQLNonTransientConnectionException #1072

Danissss opened this issue Sep 25, 2020 · 0 comments

Comments

@Danissss
Copy link

Hi, thank you for your work about the library.

I was trying to connect the MySQL database inside docker (jruby -S bundle exec rake db:migrate RAILS_ENV=production), but got error com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.

Here is my database.yml

production:
  adapter: mysql2
  encoding: utf8
  collation: utf8_unicode_ci
  host: 127.0.0.1
  port: 3306
  reconnect: true
  database: shirmlab
  pool: 8
  username: shirmlab
  password: nT3Q=HNwXm6EU

I can login to MySQL console with password nT3Q=HNwXm6EU

mysql -u shirmlab -h 127.0.0.1 -p

My based docker image is ubuntu 20:04

Thank you for your help.

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

1 participant