amazon-rds

Access denied; you need (at least one of) the SUPER privilege(s) for this operation

吃可爱长大的小学妹 提交于 2019-11-29 21:15:25
So I try to import sql file into rds (1G MEM, 1 CPU). The sql file is like 1.4G mysql -h xxxx.rds.amazonaws.com -u user -ppass --max-allowed-packet=33554432 db < db.sql It got stuck at: ERROR 1227 (42000) at line 374: Access denied; you need (at least one of) the SUPER privilege(s) for this operation The actual sql content is: /*!50003 CREATE*/ /*!50017 DEFINER=`another_user`@`1.2.3.4`*/ /*!50003 TRIGGER `change_log_BINS` BEFORE INSERT ON `change_log` FOR EACH ROW IF (NEW.created_at IS NULL OR NEW.created_at = '00-00-00 00:00:00' OR NEW.created_at = '') THEN SET NEW.created_at = NOW(); END IF

SSL Exception on Java: Path does not chain with any of the trust anchors

强颜欢笑 提交于 2019-11-29 21:13:56
问题 I am trying to establish a SSL connection with my MySQL database in Java using MySQL Connector/J (version 5.1.45 ) and this AWS RDS certificate here: https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem But I am getting the following Exception : java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors I could trace this Exception down to the MySQL Connector/J class ExportControlled.java on line 297 : CertPathValidatorResult result = this

Creating A New MySQL User In Amazon RDS Environment

纵饮孤独 提交于 2019-11-29 20:25:24
I need to create a new MySQL user with limited permission on an existing Amazon RDS instance. After encountering a couple error messages I was sort of able to do this using the official MySQL Administrator tool and the user now appears in the list. However, I'm unable to assign any schema privileges as all the users are greyed out. I'm logged in as the "master user" created when the instance was launched. Not sure where to go from here. I do have the RDS command line tools installed but wasn't able to track down anything there either. Ideas Your best bet is probably to connect to the database

Can I CREATE TRIGGER in an rds DB?

↘锁芯ラ 提交于 2019-11-29 19:58:54
I'm trying to create a trigger on a table in my Amazon RDS database, and I can't seem to make it happen. I tried to create a trigger on a table in the mysql client I use (Navicat), and got the error that I needed the SUPER privilege to do so. After some searching, I found that you could SET GLOBAL log_bin_trust_function_creators = 1 to get around this. I tried that using these instructions: http://getasysadmin.com/2011/06/amazon-rds-super-privileges/ (and then restarting the DB server for good measure), but no luck. I also tried creating the trigger and setting the variable via the mysql

how to add second in oracle timestamp

大城市里の小女人 提交于 2019-11-29 16:35:17
How can I add seconds with timestamp value in Oracle. I tried this .... SELECT CURRENT_TIMESTAMP , CURRENT_TIMESTAMP+200 AS addedTime FROM dual But by this I am getting this 2018-06-04 19:03:01 => 2018-12-21 19:03:01 (after adding 200) As you can see date is getting added , but I want to add second only... This SQL running properly in DB2 , can any one suggest me any suitable alternative in Oracle. You could always use fraction(for Oracle 1 = 1 day): SELECT CURRENT_TIMESTAMP , CURRENT_TIMESTAMP + 200 *(1/24/60/60) AS addedTime FROM dual; <=> SELECT CURRENT_TIMESTAMP + 200/86400 FROM dual

Can RDS snapshots be transferred across AWS accounts?

不羁的心 提交于 2019-11-29 06:42:25
In the time since this question was answered, AWS Tools for Powershell has been released and I basically have the same problem: I have an RDS snapshot on one AWS account that I would like to transfer to another. So far I've been able to select the snapshot that I want with the Get-RDSDBSnapshot cmdlet, and I'd like to take that Amazon.RDS.Model.DBSnapshot object and use it in the other account. I've been looking around and I think the Restore-RDSDBInstanceFromDBSnapshot cmdlet (maps to rds-restore-db-instance-from-db-snapshot ) might be what I'm looking for, but I'm not confident that I

How does Amazon RDS calculate I/O rate?

别等时光非礼了梦想. 提交于 2019-11-29 03:52:17
I browsed the Amazon RDS pricing site today and now do want to know how they actually calculate the I/O rate? What does "$0.10 per 1 million requests" really mean? Can anyone give some simple examples how many I/Os a simple query from EC2 to a MySQL on RDS produces? In general it is a price for EBS storage service. Amazon claims something like this for EBS (section Projecting Costs ): As an example, a medium sized website database might be 100 GB in size and expect to average 100 I/Os per second over the course of a month. This would translate to $10 per month in storage costs (100 GB x $0.10

download RDS snapshot

杀马特。学长 韩版系。学妹 提交于 2019-11-29 01:23:20
问题 I recently downgraded my EC2 instance. I can no longer connect to RDS. I think it might be that the internal IP is different and now the logins are attached to that specific IP. I haven't been able to figure it out. I would like to be able to get a backup from the snapshot. Is there a way to download it through AWS? 回答1: You can't download an RDS snapshot. You can however connect to it and export your databases. Downgrading your instance should not affect connectivity unless you had set up

Point Heroku application to AWS RDS database

大城市里の小女人 提交于 2019-11-28 23:53:44
I need to point my Heroku application to my AWS RDS database. My RDS database is up and running and has a security group with 0.0.0.0/0 access. Currently, I've removed my Heroku postgreSQL database and I am attempting to point my Heroku application to my RDS database. For some reason my application is crashing. The step that I believe I am on is setting my DATABASE_URL on the Heroku side. Let's say that my database credentials are: db instance: mydb dbname: mydb user: wcronyn pass: password I've tried: heroku config:set DATABASE_URL=postgres://wcronyn:password@mydb.XXXXXXX.us-east-1.rds

Should I stick only to AWS RDS Automated Backup or DB Snapshots?

百般思念 提交于 2019-11-28 21:02:33
I am using AWS RDS for MySQL. When it comes to backup, I understand that Amazon provides two types of backup - automated backup and database (DB) snapshot. The difference is explained here . However, I am still confused: should I stick to automated backup only or both automated and manual (db snapshots)? What do you think guys? What's the setup of your own? I heard from others that automated backup is not reliable due to some unrecoverable database when the DB instance is crashed so the DB snapshots are the way to rescue you. If I am to do daily DB snapshots as similar settings to automated