System specs | |
---|---|
OS type and version | Ubuntu 22.04 |
Virtualmin version | 7.8.2 |
Hello,
I’m experiencing some issues when using a remote AWS Aurora MySQL database; I wasn’t able to find any relevant direction online or on this forum about something like this.
The master user on that database does not have direct write permissions to the mysql
database on the instance.
When I try to assign a database to a new virtual server, I end up with the following message:
MariaDB database failed! : mysql::execute_sql_logged failed : SQL insert ignore into user (host, user, ssl_type, ssl_cipher, x509_issuer, x509_subject) values ('localhost', 'multisite-mpd', '', '', '', '') failed : Access denied for user 'some_user'@'%' to database 'mysql'
My understanding is that virtualmin is attempting to create a user by performing a direct insert into the mysql.users
, which is not possible with an RDS/Aurora instance due to the restrictions on the mysql
database - those permissions are exclusive to a user named rdsadmin
, which is not directly accessible.
I’m trying to find a workaround that would still allow me to assign a db to a virtual server and subsequently allow me to create wordpress installations while using Aurora or RDS db instances.
Alternatively, I was thinking about editing the mysql creation scripts and replace some of the queries with queries that would work (for example using create user
instead of attempting a direct insert on the mysql.users
db.
I’m not entirely sure where to find those files.
Any guidance to get this working would be greatly appreciated.
Thanks in advance.