简体   繁体   中英

Migrate RDS to Aurora MySQL with Ruby on rails Elastic Beanstalk

I have a Ruby On Rails App on Elastic Beanstalk with MySQL RDS, and I want to migrate it to Aurora MySQL, I could migrate my database and I have the new endpoint of Aurora MySQL, I first tried to connect it in my development environment to check if everything was going good, but when I try to deploy in production I got an error by elastic beanstalk "12_db_migration.sh failed.", but It does not have sense because I connected the database in development and It worked, It looks like if elastic beanstalk couldn't connect to the database, all credentials are correct. There are not pending migrations, and the error message does not have sense. Something important is that my previous MySQL version is 5.7.24 and the MySQL version of my new Aurora MySQL database is 5.7.12, but I think It doesn't matter because in development worked well.

Thank you.

okay, I could fix it, the problem was that I was written my credentials in database.yml file without using environment variables, I was testing something and I didn't use environment variables, and It looks that I cannot do that, I use environment variables in the file and everything worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM