-
I am new to Hammerdb and trying to run command "dbset db pg " but it gives me below error, any idea what can be done to resolve it ? hammerdb>dbset db pg |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
From v4.5 the parameters are stored in a series of SQLite files - it looks like you are having issues with the permissions to create these files.
the location is set in the config/generic.xml file as follows:
If you have security settings that is restricting the use of SQLite or opening database files this would result in the sort of problem you are seeing. What you should do is either set sqlitedb_dir to a directory you have read and write permissions or alternatively set the TMP environment variable to the name of the directory you want to use without changing generic.xml. It will have the same effect. eg creating /opt/sqlitefiles with the correct permissions and doing export TMP=/opt/sqlitefiles before starting will create the .db files in /opt/sqlitefiles. |
Beta Was this translation helpful? Give feedback.
From v4.5 the parameters are stored in a series of SQLite files - it looks like you are having issues with the permissions to create these files.
By default, they will be created in a temp directory. You don't mention what OS you are using, so using Linux as an example after starting HammerDB you should see a series of files in /tmp as follows: