2

we were on MySQL 5.6 ; and today migrated to Aurora using snapshot.

Following query on Aurora says "Unknown database products " while it works fine on MySQL DB:

select p.id,products.getSalePlanMinDate(p.id,NOW()) AS minDate from products.product p inner join customers.recently_viewed_products rvp on p.id = rvp.product_id ;

On Aurora ; select * from products.product works fine .. This is happening because I am using function in the query.. If i remove function it works fine

Finally, came to know that even following select does not work:

select products.getSalePlanMinDate();

Even though DEFINER of this function has the permissions to EXECUTE.. and i try logging in with same user as DEFINER

4

1 に答える 1

1

理由は、その RDS のいくつかのスキーマに opt ファイルが存在しなかったためです。Amazon にチケットを提出する必要があり、Amazon はバックグラウンドで opt ファイルを作成し、問題を解決しました。

于 2017-01-23T02:22:15.867 に答える