Export to an External SQL Database

JabRef is capable of exporting the contents of the BibTeX database, along with groups information, to an external MySQL or PostgreSQL database.

MySQL

  1. Using your favorite MySQL administration tool, create an empty MySQL database.
  2. Make sure there is a user for this database that has full privileges.

PostgreSQL

  1. Using your favorite PostgreSQL administration tool (PGAdminIII, PHPpgadmin, etc.), create an empty PostgreSQL database. Alternately, the command line utility createdb may be used as follows:
  2. createdb -h [HOST] -U [USERNAME] [DBNAME] -E UTF8 --lc-ctype=en_US.utf-8 -T template0

    The assumption being that the language is english and the locale is US. If a password is required, the server will prompt for one from the command line. See the createdb man page for more information.

  3. Make sure there is a user for this database that has full privileges.

Export

  1. Choose File -> Export to external SQL database, or click the corresponding button on the toolbar.
  2. Select the database type from the drop down menu for Server Type.
  3. Enter the database connection information, and click Connect.

JabRef will then connect to the specified database, drop the existing tables, create new tables, and populate those tables with entries and groups information. Note that you will not be prompted for the connection information on subsequent exports. If you would like to export to a different database, you can change the connection information by choosing File -> Connect to external SQL database (or by clicking the associated toolbar button), and then performing an export.