amazon-rds

Setup website on Amazon EC2 with mysql

扶醉桌前 提交于 2020-01-05 07:51:07
问题 I've got a new website that is Joomla driven and contains many custom apps that depend on the Mysql database. This is all hosted on Amazon EC2 with the root device being EBS. My concern is with my Mysql setup. I've installed mysql-server with pretty much default settings (other than the security cleanup). My question is if I should be setting up Mysql to run on a separate EBS volume: http://aws.amazon.com/articles/1663 or should I even be looking at Amazon RDS: http://aws.amazon.com/rds/mysql

AWS RDS MySql - how to allow access after setting 'Publicly available'

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-05 05:36:05
问题 Just created new AWS RDS MySql instance with default settings and user/pass. Also I set it to be publicly available and to create a new VPC during the process. Currently can not connect from my laptop to this RDS: mysql -h endpoint -u myusername -p error: ERROR 2003 (HY000): Can't connect to MySQL server on 'endpoint' (60) How to allow access to it from e.g. my laptop and other computers? If is trough some security groups - where exactly to change and associate with new RDS instance trough

AWS RDS: how to get latest snapshot with boto3 and jmespath?

ⅰ亾dé卋堺 提交于 2020-01-05 02:33:06
问题 Here is what I tried: #!/usr/bin/env python3 import boto3 import jmespath from datetime import datetime, timedelta now = datetime.utcnow() yesterday = now - timedelta(days=1) boto3.setup_default_session(profile_name='profilename') rds_client = boto3.client('rds') response = rds_client.describe_db_snapshots(DBInstanceIdentifier='instanseid') snaplist=jmespath.search("DBSnapshots[?SnapshotCreateTime >`2016-10-24 06:11:30`].[DBSnapshotIdentifier]", response) print(snaplist) What I get is:

Rails + Amazon RDS : latency issues

限于喜欢 提交于 2020-01-04 06:23:24
问题 I have an app whose database is being migrated to amazon RDS. I experienced a significant drop of performance, due to the latency of the queries between RDS and our server (like 30s of loading time only because of the queries). There is no explicit caching, and the requests could be optimized a bit more, but this is still more than 10x slower than with a local database. I this kind of performance drop expected? If yes, is there a way to use a cloud database with similar performances as a

Intermittent SQL connectivity issue with AWS RDS

人走茶凉 提交于 2020-01-04 04:07:05
问题 We are currently experiencing an intermittent issue with our ASP.NET website (built on Sitecore) where the website cannot connect to SQL server for seemingly random periods of 15 minutes. After 15 minutes, the issue resolves itself and the website comes back up. The error message is: Exception: System.Data.SqlClient.SqlException Message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify

Lock wait timeout exceeded in MySQL amazon rds

穿精又带淫゛_ 提交于 2020-01-03 19:42:11
问题 I have one store procedure, which is doing saving operation in one table. In this store procedure, I am inserting multiple records in table. here is my table structure Table : InviteMst ~~~~~~~~~~~~~~~~~ Name DataType Description -------- ------------ ---------------------- InviteID Int PrimaryKey (Auto Incr) Date Date UserID Int (ForignKey) EMailID varchar(50) Guid varchar(36) store procedure : usp_InviteMst ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CREATE PROCEDURE `usp_InviteMst`( IN n_UserID INT,

Lock wait timeout exceeded in MySQL amazon rds

≯℡__Kan透↙ 提交于 2020-01-03 19:42:10
问题 I have one store procedure, which is doing saving operation in one table. In this store procedure, I am inserting multiple records in table. here is my table structure Table : InviteMst ~~~~~~~~~~~~~~~~~ Name DataType Description -------- ------------ ---------------------- InviteID Int PrimaryKey (Auto Incr) Date Date UserID Int (ForignKey) EMailID varchar(50) Guid varchar(36) store procedure : usp_InviteMst ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CREATE PROCEDURE `usp_InviteMst`( IN n_UserID INT,

AWS RDS Parameter Group not changing MySQL encoding

旧城冷巷雨未停 提交于 2020-01-03 04:26:08
问题 I am running a MySQL database on RDS. I want to change all of my encodings to utf8mb4 . I created a parameter group on RDS with all character_set_* parameters as utf8mb4 , assigned it to my RDS instance, and then rebooted the instance. However, when I run SHOW VARIABLES LIKE '%char%' on my DB, there are still values of latin1 , which I do not want: character_set_client latin1 character_set_connection latin1 character_set_database utf8mb4 character_set_filesystem binary character_set_results

Difference between RDS and Redshift

断了今生、忘了曾经 提交于 2020-01-02 06:25:28
问题 Can anyone list down the main differences between Amazon Redshift and RDS? I know both are relational DB's but why choose one over the other ? 回答1: RDS is a managed service for Online Transaction Processing databases (OLTP), i.e. a managed service for the usual MySQL, PostgreSQL, Oracle, MariaDB, Microsoft SQL Server or Aurora (Amazon's own relational database) Redshift is a managed service for data warehousing, i.e. columnar oriented storage, typical for business analytics type of workloads.

AWS RDS t2.medium CPU credits low although CPU not high

北战南征 提交于 2020-01-02 06:20:46
问题 I'm wrapping my head around this issue with the CPU Balance constantly going down although my CPU during this time is <40% consistently. I'm using a t2.medium with MySQL and according to this page, shouldn't it be that if I'm <40%, my CPU Credits will increase? Ref: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html 回答1: The baseline performance of a t2.medium is 40% CPU utilization on a scale of 0% to 200% , because the machine has 2 cores. On a scale of 0% to 100%, like