I’m trying to install ERPNext with a managed MariaDB service.
Within that service, I created a database named ‘erpnext’ and a user named ‘erpnext’ that associated with ‘erpnext’ database:
When I run
SHOW GRANTS
query, the result is:
GRANT USAGE ON . TO ‘erpnext’@‘%’ IDENTIFIED BY PASSWORD ‘userpassword’
GRANT ALL PRIVILEGES ONerpnext
.* TO ‘erpnext’@‘%’
Then I create a new site with bench.
bench new-site site1 --db-name erpnext --mariadb-root-username erpnext
And I got this error:
Exception: Database erpnext already exists
Then I removed --db-name
parameter to let bench decide database name.
bench new-site site1 --mariadb-root-username erpnext
And I got this error:
pymysql.err.InternalError: (1227, ‘Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation’)
I know bench need root user access to have CREATE USER privilege and I contacted with the managed database service support but I can not have either root user access or CREATE USER privilege for my erpnext database user.
Is there any solution for me to install ERPNext to that managed database service instead of install my own MariaDB server?
Thank you.