amazon-rds

MySQL/Amazon RDS error: “you do not have SUPER priviledges…”

我的未来我决定 提交于 2019-12-17 17:29:06
问题 I'm attempting to copy my mysql database from an Amazon EC2 to an RDS: I successfuly did a mysqldump of my database into my root folder using this: root@ip-xx-xx-xx-xx:~# mysqldump my_database -u my_username -p > my_database.sql Then I tried to transfer this .sql file to my new RDS database: root@ip-xx-xx-xx-xx:~# mysql my_database -u my_username -p -h my_new_database.xxxxxxxxx.us-east-1.rds.amazonaws.com < my_database.sql Unfortunately, I get following error message: You do not have the

Can't connect to RDS instance from EC2 instance

*爱你&永不变心* 提交于 2019-12-17 17:27:16
问题 From EC2 instance i-78a8df00, I'm trying to connect to RDS instance mysql.************.us-east-1.rds.amazonaws.com. They are both in the U.S. East region. I added the security group of EC2 instance (sg-********) to the RDS security group, but that didn't help. It appears to be a firewall/DNS issue as it is timing out when running this command: ubuntu@ip-10-195-189-237:~$ mysql -h mysql.************.us-east-1.rds.amazonaws.com ERROR 2003 (HY000): Can't connect to MySQL server on 'mysql.*******

How do I store aws pinpoint messages to rds?

妖精的绣舞 提交于 2019-12-17 07:55:33
问题 I am new to aws and I have been experimenting with aws pinpoint two way messages. Right now my customers are able to send messages to my long code and I already have predefined responses based on some key word s. The problem is some users do not use the key words that I have captured so I want to store all messages from my customers in a database (preferably a sql server database) and send custom responses to each message. How do I achieve this? 来源: https://stackoverflow.com/questions

MySQL table index optimization

痴心易碎 提交于 2019-12-13 21:15:29
问题 I'm working with an application that has a MySQL database at Amazon RDS. The table in questions is set up as such: CREATE TABLE `log` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `timestamp` datetime NOT NULL, `username` varchar(45) NOT NULL, .. snip some varchar and int fields .. PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 This system has been in beta for a while and already the dataset is quite huge and the queries are starting to be rather slow. SELECT COUNT(*) FROM

AWS RDS MySQL Read Replicas Data Sync time

爷,独闯天下 提交于 2019-12-13 09:26:38
问题 We have and architecture of a scalable web application on AWS and utilized AWS RDS MySQL. They say you have to create 2 Slave Read-Replicas for your MySQL Master db instance. Using this, the master DB will synchronize your data whenever it finds a change (in its master instance) across all of the read replicas. Your application has to split Read and Write operations so that All the Read Requests goes to Read-Replicas (Via a load-balancer or DNS) and write requests\ops goes to the master db.

Wordpress and phpMyAdmin cannot open a RDS database

≯℡__Kan透↙ 提交于 2019-12-13 09:09:46
问题 I created a WordPress multisite on an EC2 using CentOS 7 with MariaDB. Amazingly it works. I followed the instructions here to upload the database using MySQL from a command line I can attach to and see the RDS database. MariaDB [(none)]> SHOW databases; +--------------------+ | Database | +--------------------+ | WPDB01 | | information_schema | | innodb | | mysql | | performance_schema | +--------------------+ MariaDB [(none)]> select User, Host from mysql.user; +-----------------+----------

Installing Wordpress on Ec2 Instance with the Database on an RDS Instance

冷暖自知 提交于 2019-12-13 06:49:18
问题 I want to install Wordpress on an existing AWS ec2 instance. However, I get an error: "Error establishing database connection". I followed the tutorial here:http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hosting-wordpress.html The only difference is that the tutorial is for people who are installing MySQL on the same ec2 instance while I wish to have MySQL run on a separate instance (ie: RDS). The steps I carried out: 1) Installed the httpd24, php56 and php56-mysqlnd packages on the ec2

Amazon-RDS database to Dedicated server

自闭症网瘾萝莉.ら 提交于 2019-12-13 05:27:52
问题 I went through this answer here: Mysqldump of the AWS RDS But, apparently, it gave me no clue. What I intend to do? I have an RDS instance running on amazon and database is about 450+ tables, which is an insane amount of data for mysqldump. I wish to have it dumped so that I can migrate it from AwS to Dedicated. What is the problem? It freezes once I start taking the dump via adminer. Snapshot gives a format which can be used from one region to another but, I wish to have it in say.. SQL

LOAD DATA LOCAL INFILE not working in RDS

好久不见. 提交于 2019-12-13 02:40:01
问题 I have wordpress website and have created plugin to import csv to a table. Database is in RDS. Here is the sql I have used LOAD DATA LOCAL INFILE 'my.csv' INTO TABLE tablename CHARACTER SET UTF8 FIELDS TERMINATED BY ',' ENCLOSED BY '\"' LINES TERMINATED BY '\r\n' IGNORE 1 LINES ( ID, Name Address ) When I run this sql in sqlyog in the same database ( database in RDS ) this works perfectly. Please note csv file used is on my windows folder and given absolute path. However when I run this sql

Connecting to RDS from EC2

空扰寡人 提交于 2019-12-13 02:15:39
问题 This is a bit of a basic question, I don't have much experience of AWS (Azure is my usual bag!). When connecting to an RDS instance from and EC2 instance using connection string such as : xxx.xxxxxx.eu-west-1.rds.amazonaws.com:1433 and both the RDS and EC2 are in the same VPC will there be bandwidth charges for that connection? The EC2 can only access the RDS when the RDS IP address is added to the security group. Also, is the traffic routed over the internet or is there some way to configure