You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation #4544
Caused by: org.testcontainers.ext.ScriptUtils$ScriptStatementFailedException: Script execution failed (sql/init_db.sql:2): CREATE USER test@% IDENTIFIED BY 'test' at org.testcontainers.jdbc.JdbcDatabaseDelegate.execute(JdbcDatabaseDelegate.java:49) at org.testcontainers.delegate.AbstractDatabaseDelegate.execute(AbstractDatabaseDelegate.java:34) at org.testcontainers.ext.ScriptUtils.executeDatabaseScript(ScriptUtils.java:362) ... 71 more Caused by: java.sql.SQLSyntaxErrorException: Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)
How can this be fixed. ? I can't create tables in testcontainer, I can't use create and alter, create schema- commands and others because of an access error.
Activity
rnorth commentedon Oct 5, 2021
As this is a usage related question, I'll convert to a discussion.