Need advice about which tool to choose?Ask the StackShare community!
Hi, I'm a beginner at using MySQL, I currently deployed my crud app on Heroku using the ClearDB add-on. I didn't see that coming, but the increased value of the primary key instead of being 1 is set to 10, and I cannot find a way to change it. Now I`m considering switching and deploying the full app and MySql to DigitalOcean any advice on that? Will I get the same issue? Thanks in advance!
If a database tables has had some records added to it, and those records are then deleted the Auto Increment value is not automatically reset to avoid accidentally referencing an incorrect row. (e.g. maybe another reference to that row ID exists somewhere). If that's not a problem you can manually reset it with
ALTER TABLE tablename AUTOINCREMENT = 0;
Alternatively, if you were to TRUNCATE the table (DELETE ALL RECORDS), this would also reset the AUTO INCREMENT value: TRUNCATE TABLE table_name;
what does your database look like? did you add auto-increment that could add a nubetr t ass
Using on-demand read/write capacity while we scale our userbase - means that we're well within the free-tier on AWS while we scale the business and evaluate traffic patterns.
Using single-table design, which is dead simple using Jeremy Daly's dynamodb-toolbox library
Pros of Amazon RDS
- Reliable failovers165
- Automated backups156
- Backed by amazon130
- Db snapshots92
- Multi-availability87
- Control iops, fast restore to point of time30
- Security28
- Elastic24
- Push-button scaling20
- Automatic software patching20
- Replication4
- Reliable3
- Isolation2
Pros of ClearDB
- Cloud SQL7
- Heroku6
- Fast4
- Great Backup3
- Easy to use3
- Scalability2
- Great Support1
- Geographic redundancy1
- Master / master replication1
Pros of Google Cloud SQL
- Fully managed13
- Backed by Google10
- SQL10
- Flexible4
- Encryption at rest and transit3
- Automatic Software Patching3
- Replication across multiple zone by default3