climsoft / Climsoft

Climsoft Desktop for Windows - http://www.climsoft.org
GNU General Public License v3.0
14 stars 28 forks source link

Problem of permission when adding a new database connection #625

Open mhabimana opened 4 years ago

mhabimana commented 4 years ago

There is a problem of permission when adding a new database connection,see below screenshot of the error message. The only way to add a new database connection is to add this manually in the configuration file,which is not a good practice. image

isedwards commented 4 years ago

The database connection details are now stored in the windows registry.

However, the software still checks for the config.inf file incase there are settings there that need to be remembered from an old version of Climsoft (but it doesn't update/write to the config.inf file anymore).

I'll take a look at the code and see what might be happening.

mhabimana commented 4 years ago

@iedwards - It is now working well. Apparently,it was my installation,I had to uninstall Climsoft and re-install it again on my PC. Thought under "Connection name; it is not accepting a space when naming a connection ("e.g: it will not accept something like this: "Default Database" but rather "Default_Database" or "DefaultDatabase",so one word or if two,put an underscore between the two words.

smachua commented 4 years ago

@isedwards the default name (i.e. Default database) need to be initially joined. It won't adding another database if it isn't.