-
Notifications
You must be signed in to change notification settings - Fork 62
Databases: Configuring a Database Backend
Nimbits ships with an embedded H2 database. When it's time to scale up, you can change the system to point to a backend like mySQL. A more detailed mySQL Setup can be found here.
- create a new schema called
nimbits
:CREATE SCHEMA 'nimbits' ;
- Edit persistence.xml
Comment out the H2 Database entry and uncomment the database of your choice. You will need to modify the connection url, user name and password.
- Edit applicationContext
Change the LocalPersistenceManagerFactoryBean
with the same connection info as above.
- Edit pom.xml replace the
Database driver with the driver of your choice.
Copyright 2016 Benjamin Sautner
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.