Mysql2::Error (Access denied for user'b00120fa21c0f6'@'ip-10-139-25-93.ec2.internal' (using password: YES)) :

Asked 1 years ago, Updated 1 years ago, 118 views

Environment
heroku
ClearDB MySQL

I'm running the Rails app with Heroku, but while I was working on it, "We're sorry, but something wrong." and the app stopped working.
When I looked at the Heroku log, I found the following error statement:
I looked into it, but I don't know how to solve it, so I would like your advice.
Thank you for your cooperation.

error statement
Mysql2::Error (Access denied for user'b00120fa21c0f6'@'ip-10-139-25-93.ec2.internal' (using password: YES))

database.yml
default:&default
adapter:mysql2
encoding:utf8
pool:5
username:root
password:
socket: /var/run/mysqld/mysqld.sock
template:template0

ruby-on-rails mysql heroku

2022-09-30 21:19

1 Answers

What kind of work are you working on?
Database.yml does not have a root password, so if it is an error with root, it seems to be an error with rails (for example, rakedb:create), but since it is an error with b00120fa21c0f6, is it a direct operation to MySQL?
If this is the case, the user settings for MySQL may not be sufficient.


2022-09-30 21:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.