Merge pull request #442 from Poniverse/feature/change-mysql-port

Added in ability to change mysql port
This commit is contained in:
Calvin Montgomery 2015-02-14 16:39:38 -06:00
commit af58b435ba
3 changed files with 4 additions and 1 deletions

View file

@ -5,6 +5,7 @@
# password: password for user
mysql:
server: 'localhost'
port: 3306
database: 'cytube3'
user: 'cytube3'
password: ''

View file

@ -8,9 +8,10 @@ var YAML = require("yamljs");
var defaults = {
mysql: {
server: "localhost",
port: 3306,
database: "cytube3",
user: "cytube3",
password: ""
password: "",
},
listen: [
{

View file

@ -14,6 +14,7 @@ var global_ipbans = {};
module.exports.init = function () {
pool = mysql.createPool({
host: Config.get("mysql.server"),
port: Config.get("mysql.port"),
user: Config.get("mysql.user"),
password: Config.get("mysql.password"),
database: Config.get("mysql.database"),