# Register database driver

**URL:** <https://forum.knime.com/t/register-database-driver/2574>\
**Category:** KNIME Analytics Platform\
**Created:** [January 11, 2013, 10:01am UTC](https://forum.knime.com/t/register-database-driver/2574 "2013-01-11T10:01:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![omora](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/o/898d66/32.png) [@omora](https://forum.knime.com/u/omora)\
**Post date:** [January 11, 2013, 10:01am UTC](https://forum.knime.com/t/register-database-driver/2574/1 "2013-01-11T10:01:17Z")

</div>

Hi,  
  
 I have to execute a workflow with the following requirements:  
  
 - The workflow should be executed in other machines (not in my PC)  
  
 - The workflow should be called using Batch Mode.  
  
 - The workflow should query a PostgreSQL database (Using database node reader, and other Database access KNIME nodes ).  
  
 Unfortunetaly,&nbsp; I am experiencing problems with the registration of the DDBB driver:  
  
 Could not register database driver "org.postgresql.Driver", reason: org.postgresql.Driver  
  
 In the following link, Gabriel points out the solution:  
  
 http://tech.knime.org/forum/knime-general/database-driver-registration-problem-knime-27-batch-mode  
  
 It works fine for me, but unfortunately I cannot access the KNIME intallations of the remote PC's in order to do all the process of the preferences generation:  
  
 &nbsp;&nbsp;&nbsp; File-\>Preferences-\>KNIME-\>Database Driver-\>New-\>Select the .jar  
 &nbsp;&nbsp;&nbsp; File-\>Export Preferences-\>Save .epf file  
  
 My question is the following: since I know the ubication of the driver file .jar in the remote PC. It is possible to mount/build the preferences file (.epf) in an automatic way (command line or something similar) ?  
  
 Thanks in advance.  
  
 Oscar

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [January 11, 2013, 11:00am UTC](https://forum.knime.com/t/register-database-driver/2574/2 "2013-01-11T11:00:15Z")

</div>

If you have control over the other computers, the best solution would be to create a custom plug-in that contains the JDBC driver. See the JDBCDriver extension point in org.knime.core for details.

I don't know of a way to import and export preferences automatically (e.g. from the command line), but probably there is a way in Eclipse to do so. You may also edit the .epf ny hand/by a script since it is a plain text file. It should be enough to just change the line(s) with the JDBC drivers and remove everything else.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 23, 2023, 8:18pm UTC](https://forum.knime.com/t/register-database-driver/2574/3 "2023-06-23T20:18:01Z")

</div>


