Many quickbuild students, have no database, directly for the project production, which is extremely dangerous. First of all, performance will be more and more in the construction of the situation will be more and more poor, if the server suddenly power off restart, will also lead to data loss, start when the error, can only use the backup to recover (if not back up, that ...) )。
Let's talk about how to set up an external database.
In fact, when the start, there is a hint, according to the guide, you can set up, here just to a Chinese version of the steps:
One. The first time you open Quickbuild, you will be prompted:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7D/AE/wKiom1btAoPD2VjTAAAxwAPFmtA805.png "title=" 04.png "alt=" Wkiom1btaopd2vjtaaaxwapfmta805.png "/>
Two. If you click on this guide, you can see the official note:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7D/AE/wKiom1btAwHwibfRAADLxxIDKlQ539.png "title=" 03.png "alt=" Wkiom1btawhwibfraadlxxidklq539.png "/>
Three. In fact, the official said very clearly, is to modify the program directory under the Conf/hibemate.properties file.
1. Backup
2. Close Quickbuild Server
3. Open Conf/hibemate.properties Edit
Comment out the previous H2 section
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7D/AF/wKiom1btFmKza0LlAAA8DQJfZsQ346.png "title=" 05.png "alt=" Wkiom1btfmkza0llaaa8dqjfzsq346.png "/>
4. Counter-Annotate the database that you want, like MySQL, as required:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7D/AB/wKioL1btF4HzAhnEAACLFZCBL50883.png "title=" 06.png "alt=" Wkiol1btf4hzahneaaclfzcbl50883.png "/> 5. Note that each database has corresponding settings, such as MySQL, in the above section, write, to modify the MySQL configuration file, add several items. Also download the corresponding MySQL JDBC driver to the Plugins/com.pmease.quickbuild.libs directory.
6. Complete the above settings, you are ready, you can use the 1th step of the backup to recover.
7. Restart the Quickbuild server, you should not see the application prompt called the replacement database.
PS: If there is a problem, you can restore the configuration file configuration back to the original file database.
Four. Replace the database, does not mean that you do not have to back up, backup or need to back up, and to periodically migrate backup files to save (disaster)
This article is from the "New One" blog, so be sure to keep this source http://pureivan.blog.51cto.com/2035414/1752913
Quickbuild setting using an external database