amazon-rds

how to 'load data infile' on amazon RDS?

Deadly 提交于 2019-11-28 17:28:20
问题 not sure if this is a question better suited for serverfault but I've been messing with amazon RDS lately and was having trouble getting 'file' privileges to my web host mysql user. I'd assume that a simple: grant file on *.* to 'webuser@'%'; would work but it does not and I can't seem to do it with my 'root' user as well. What gives? The reason we use load data is because it is super super fast for doing thousands of inserts at once. anyone know how to remedy this or do I need to find a

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

一曲冷凌霜 提交于 2019-11-28 16:59:50
问题 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

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

痞子三分冷 提交于 2019-11-28 16:28:07
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 SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function

Creating A New MySQL User In Amazon RDS Environment

主宰稳场 提交于 2019-11-28 15:56:51
问题 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

Exporting a AWS Postgres RDS Table to AWS S3

对着背影说爱祢 提交于 2019-11-28 13:44:19
I wanted to use AWS Data Pipeline to pipe data from a Postgres RDS to AWS S3. Does anybody know how this is done? More precisely, I wanted to export a Postgres Table to AWS S3 using data Pipeline. The reason I am using Data Pipeline is I want to automate this process and this export is going to run once every week. Any other suggestions will also work. There is a sample on github. https://github.com/awslabs/data-pipeline-samples/tree/master/samples/RDStoS3 Here is the code: https://github.com/awslabs/data-pipeline-samples/blob/master/samples/RDStoS3/RDStoS3Pipeline.json I built a Pipeline from

How to connect amazon RDS in iOS

扶醉桌前 提交于 2019-11-28 13:01:05
I am making an app in which i was using Amazon Simple db but now i have changed the simple db to amazon rds mysql. Simple db had own api and frame works to access the data base and tables in iOS but how to access amazon rds mysql in iOS any idea how to get this done. They have Amazon have libraries for simple db if there is any other way libaray to use amazon rds in iOS app thanks Sébastien Stormacq Amazon RDS instances are regular MySQL / Oracle / ... databases. You can connect to it from any device or platform, provided you have a driver for it. There is a C driver for Mysql (see this

how to add second in oracle timestamp

一笑奈何 提交于 2019-11-28 10:04:33
问题 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. 回答1: You could always use fraction(for Oracle 1 = 1 day): SELECT CURRENT_TIMESTAMP , CURRENT

LOAD DATA LOCAL INFILE fails - from php, to mysql (on Amazon rds)

别等时光非礼了梦想. 提交于 2019-11-28 08:44:53
We're moving our database from being on the webserver to a separate server (from an Amazon EC2 webserver to an RDS instance.) We have a LOAD DATA INFILE that worked before that is going to need the LOCAL keyword added now that the database will be on a different machine to the webserver. Testing on my dev server, it turns out that it doesn't work: I can still LOAD DATA INFILE from php as I have been I can LOAD DATA LOCAL INFILE from mysql commandline (with --local_infile=1) I can't LOAD DATA LOCAL INFILE from php. Between those 2 things that do work, it rules out: problems with the sql or php

What does the MySQL 5.6 error “InnoDB presently supports one FULLTEXT index creation at a time. Try LOCK=SHARED” mean?

跟風遠走 提交于 2019-11-28 04:51:07
问题 In MySQL 5.6.22 (specifically running on Amazon RDS) I once had a fulltext index on a table. I have since dropped that index in favor of using sphinxsearch. There are no more fulltext indexes on any of the tables on the database. When I try to now perform an online DDL such as adding a tinyint column to a table with LOCK=NONE I get this error: InnoDB presently supports one FULLTEXT index creation at a time. Try LOCK=SHARED. But, there are no fulltext indexes anywhere. I've even tried creating

Amazon RDS running out of freeable memory. Should I be worried?

為{幸葍}努か 提交于 2019-11-28 04:49:52
I have an Amazon RDS instance. Freeable Memory has been declining since setup over 1-2 weeks, starting from 15GB of memory down to about 250MB. As it has dropped this low in the last days, it has started to resemble a sawtooth pattern where Freeable Memory drops to this range (250 - 350MB) and then goes back up agin to 500 - 600MB in a sawtooth pattern. There has not been any notable decline in application quality. However, I am worried that the DB will run out of memory and crash. Is there a danger that the RDS instance will run out of memory? Is there some setting or parameter I should be