Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fix typo on anchor and the helper class

...

If you receive an SQL error in ofbiz, it doesn't show the error from the database itself. Instead, it shows a general error which isn't neccessarily clear. Run the SQL directly on the database get a more helpful error message.

 

Anchor
ReadOnlyDatabase
ReadOnlyDatabaseRead Only DatabaseRead Only Database

How to connect to a Database on read only

If you need to connect OFBiz to a database without write access or you want just are sure that your users have a read acces, you can change on the entityengine.xml the helper to the class ReadOnlyHelperDAO on your data-source  like that

Code Block
languagexml
    <datasource name="localderby"
            helper-class="org.apache.ofbiz.entity.datasource.ReadOnlyGenericHelperDAOReadOnlyHelperDAO"
            schema-name="OFBIZ"
            field-type-name="derby">...

...