Workflow Manual / Version 2512.1
Table Of ContentsDatabase views and changing the database user
Besides tables, the database schema of the Content Management Server, which is shared with the Workflow Server, contains the following views. They are created automatically together with the tables when the Content Management Server is started for the first time:
WfVPIStatesWfVTIStatesWfVTokens
The Workflow Server requires these views on startup to determine the active task instances of running processes.
MySQL and MariaDB: Views Are Bound to the Creating Database User
In MySQL and MariaDB, a view stores the account that created it as its DEFINER, including the
host part of the account. If this account no longer exists, any access to the view fails, and the
Workflow Server does not work anymore.
This happens, for example, if you rename the database user, change the host part of the account (for example, because the network of your Docker setup changed), or restore a database dump under a different database user. In these cases, you have to do one of the following:
Recreate the original database account and grant it the same privileges on the database schema as before, so that the definer of the views exists again and can access the underlying tables.
Export the database schema, remove the
DEFINERclauses of the views from the dump, and import the dump as the new database user. The views are then bound to the new database user.


