migrating mysql instance on AWS RDS - mysql is not an option - mysql

I have an instance in RDS that is using mysql as the database engine. When I try to migrate that instance to a new one, it is only giving me options for Aurora and MariaDB. A few weeks ago I did the same thing to make a test version of the production database instance, and mysql was an option then. Any ideas on how I can make a copy of a mysql instance?

Related

Create new AWS RDS instance and import data rather than update MySQL version from 5.6 to 5.7

I currently have an RDS instance running in AWS based on mysql version 5.6. I need to update it to 5.7 and the main thing recommended is to use the major update functionality in AWS console. However, I have looked through the documentation and it seems quite complicated so I was wondering if the following procedure is a valid workaround that will achieve the same result?
Create a new RDS instance based on mysql version 8 (can also do 5.7)
Export data in database from original RDS instance into a dump file (using export data functionality of mysql workbench)
Reconnect existing bastion EC2 instance to connect to new RDS instance with mysql version 8 (using mysql workbench) and access new RDS through that
Import database from dump file created in step 2 into the new RDS instance (using import data functionality of mysql workbench)
Configure application to use details of the new RDS instance
Is this a valid procedure? If not, what is wrong with it?
Your procedure looks good. Do not forget to set inbound rules on the new RDS instance. Using MySQL Workbench is a good way to move data once you connect to your new instance. Once you have the new version all setup, inbound rules set, and data ported to the new instance, be sure to delete the old RDS instance as well.

Migrating MySQL DB instance on RDS to Amazon Aurora

I had created a MySQL DB instance on RDS, following are the details:
Instance class - db.t2.micro
Engine version - 8.0.17
It is present in us-east-1 region.
Now I have to move my MySQL DB to Amazon Aurora, following were the documentation guides which i followed:
1- https://docs.amazonaws.cn/en_us/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Migrating.RDSMySQL.Replica.html
On following the above guide i am only able to create a read replica. The option for creating a aurora replica is not visible. Also, when i create read replica it is created for mysql db and not gives me option to create for any other engine type.
2- https://docs.amazonaws.cn/en_us/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Migrating.RDSMySQL.Import.html
On following the above guide, i am able to create snapshot for my mysql db instance. But, the option to 'Migrate Snapshot' is disabled. Could anyone please help me with this.
Could anyone also suggest me any other way in which i can migrate my MySQL db on RDS to Amazon Aurora?
Aurora MySQL is only supported for MySQL 5.6 and 5.7 unfortunately so the read replica solution would not work.
However, Amazon have you covered with the Database Migration Service.
AWS published a blog post on this, so take a read.

Mysql5.5 migration to RDS/Aurora

We have an mysql 5.5 installed and running on an AWS ec2 instance (r3.4xlarge type). We want to migrate to RDS/Aurora
1- RDS/Aurora can support mysql 5.6 and above. Should we first upgrade our database then move it to RDS/Aurora? Or can we do that using mysqldump directly?
Aurora has the ability to import from a 5.5 backup created with Percona XtraBackup. Dump the 5.5 database, put the backup in S3, and create aurora from that backup.
You may be able to set up replication from your ec2 instance to RDS MySQL or Aurora, as long as you're not using MyISAM tables.
Finally, you can use the AWS Database Migration tool to migrate from MySQL to Aurora.
There are two options, one is use database migration services to migrate the database from MySQL 5.5 to Aurora DB, it is recommended migration tool by Amazon, using this method you can be migrated without any outage.
Second is take backup and directly import in Aurora, it will be fast if both instances are in same region else move back up to s3 and restore it.

Is it possible to downgrade a AWS RDS from mysql 5.7 to lower version (say 5.6)

This is something i need to figure out, my company runs a number of prod RDS on AWS. Some of the mysql RDS run with 5.7 , i need to downgrade the mysql to 5.6 or 5.5 . Is this functionality provided by AWS.
Scenario: A mysql server already up and running with mysql version 5.7, Downgrade this to 5.6
-> If this is possible then what are the possible ways ?
-> How to do this ?
This is not something that AWS provides out of the box, however it can be solved with below 2 approaches depending on your database size and downtime that you can accept.
It might worth considering fixing application compatibility instead of downgrading DB which is more risky operation.
1. Dump, restore and switch method
Dump your currently running database with mysqldump utility. Start a new RDS instance with downgraded engine, load your dumped data into it. Switch your application to use RDS instance with downgraded engine.
2. Dump, restore, replicate & switch method
Dump your currently running database with mysqldump utility. Start a new RDS instance with downgraded MySQL engine, load your dumped data into it.
Set the new, downgraded DB instance as read replica of your old DB instance using mysql.rds_set_external_master and then start replication using mysql.rds_start_replication. Stop writes to your original DB, once the read replica catches up (you must monitor replication lag), run mysql.rds_reset_external_master which will promote your downgraded instance and turn off replication. Point your application to the downgraded RDS DB instance.
Method 2 will shorten your downtime to minimum, but is a bit more complex to execute. Here is a command reference to get familiar with to help you succeed: MySQL on Amazon RDS SQL Reference
You will find a great amount of examples in RDS documentation also - Importing and Exporting Data From a MySQL DB Instance:

Migrate PostgreSQL database to MySQL

Say that I want to migrate a PostgreSQL database on Heroku to MySQL on EC2 and I need to preserve the ID values in all the tables, what's the best way to accomplish that without using paid software?
It's quite simple.
I would have mySQL instance locally, heroku db:pull to get it from Heroku Postgres to your local development mySQL instance, back it up and then restore the backup to your EC2 MySQL instance