Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Caused by: org.h2.jdbc.JdbcSQLException: Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode
Caused by: org.h2.jdbc.JdbcSQLException: Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode
Hi AnonymousUser.
I was in the same problem like you and the only problem was my grants on database. I got MySQL and when I did check it, my dbuser won't have the appropriate grants.
if you have the same database try this:
mysql> show grants for 'username'; +--------------------------------------------------------------------------------------------------------------------------------------+ | Grants for username@% | +--------------------------------------------------------------------------------------------------------------------------------------+ | GRANT ALL PRIVILEGES ON `MDM_STAGING`.* TO 'username'@'%' | | GRANT ALL PRIVILEGES ON `MDM_MASTER`.* TO 'username'@'%' | | GRANT ALL PRIVILEGES ON `MDM_MASTER`.* TO 'username'@'%' | | GRANT ALL PRIVILEGES ON `TMDM_DB_SYSTEM`.* TO 'username'@'%' | +--------------------------------------------------------------------------------------------------------------------------------------+ 4 rows in set (0.00 sec)
Like you notice I just have permission to modify my Database but I don't have permission to create another one.
mysql> GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec)
Restart the MDM Server and try it again.
So I hope it helps you.
Oscar