Setup MySQL database connection - nordpos/nordpos GitHub Wiki
For Linux
- Create new database.
$ mysql -u user_name -p
CREATE DATABASE nordpos_db;
or (if you have exists database)
- Create database back-up.
$ mysqldump -h localhost -u user_name -p nordpos_db > nordpos_db.sql
- Create user and grant the access for NORD POS database.
$ mysql -uroot -p
CREATE USER 'nordposuser'@'localhost' IDENTIFIED BY 'nordpospass';
GRANT ALL PRIVILEGES ON nordpos_db . * TO 'nordposuser'@'localhost';
FLUSH PRIVILEGES;
- Run application for configuration.
$ ./configure.sh
- Setup database connection:
- select database type
MySQL
; - change path for driver library(by-default JDBC libraries placed in
lib-jdbc
folder of application); - set connection URL to your database
jdbc:mysql://localhost:3306/nordpos_db?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8
; - enter user name
nordposuser
and passwordnordpospass
.
- Disable start-up of Apache Derby Network Server.
- Save configuration changes and start NORD POS.
$ ./start.sh
- Allow create new database.
or
- Allow database upgrade.
- After run initiation scripts, the application deploy(or upgrade) NORD POS database into your MySQL Server and run login panel.
Finish