Installing Database

Setting up MixERP database is the first task you need to perform before you start actual development. MixERP uses one of the most advanced and open source database engines--PostgreSQL.

PostgreSQL is a free database engine, supports almost all popular operating systems. This makes us (MixERP community) less tied to just one particular OS platform. PostgreSQL is reliable, powerful, modern, and developer-friendly database and has one of the most resourceful and highly regarded open source communities ever.

Choosing PostgreSQL was a very conscious and spontaneous decision we made when we started development. PostgreSQL has a very liberal license, which gives us freedom over a commercial DB engine. Likewise, in the long run, as your data grows bigger, you will never have to worry about the license fees and associated costs of upgrade and ownership. This can be a costly factor to have been overlooked by software developers in the long run.

There are numerous companies providing commercial PostgreSQL support and consultancy if you need support. You can always find another company to support you if you are not happy with the existing one, without having to change your DBMS.

Install PostgreSQL Server First

You will need to install PostgreSQL Server, 9.3 or higher. Get the latest PostgreSQL server installer here:


MixERP only works on stable version of PostgreSQL Server. Before posting PostgreSQL errors on MixERP forums, please do make sure that you do not have an alpha, beta, or gamma version.

Create a New Database

Create a new PostgreSQL database, name it anything you want, but


When you create your database, navigate to the tab "Definition". Make sure that you have the following settings:


CollationC or POSIX
Character TypeC or POSIX

Install MixERP Database


Upon receiving a complaint that MixERP DB script produced errors, we did a quick remote connection to see what was going wrong on that PC. We found out that one of the commercial SQL tools was being used to do the job. To our surprise, the error had to do nothing with MixERP SQL script. To add insult to the injury, the software has misunderstanding on how PostgreSQL actually works. This tool supports many DBMSes, including but not limited to SQL Server, Oracle, DB2, PostgreSQL, MySQL, etc and is regarded as pretty good software for doing the SQL things. Many developers use many different DBMSes and this tool seems perfect because it supports most of them.

So, we thought why don't give it a try to check how other tools worked with our script. We tested most of the available PostgreSQL database GUI tools to run the MixERP DB script. The results were pretty shocking. Most of these softwares focus largely on UI but performance. Since MixERP has very large database scripts containing more than 100K lines of SQL code, some of the tools froze and gave it up altogether.

PgAdmin is what we recommend because not only it is fast, but also the GUI is highly configurable, stable, and feature complete.

Related Topics

Share this page