mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
minor updates to mysql-tools
This commit is contained in:
26
modules/uwd/mysql-tools/.gitignore
vendored
26
modules/uwd/mysql-tools/.gitignore
vendored
@@ -1,13 +1,13 @@
|
|||||||
/mysql_config
|
/mysql_config
|
||||||
mysql_tools_(for usr-local-bin)
|
mysql_tools_(for usr-local-bin)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Editors / debuggers / other output files
|
# Editors / debuggers / other output files
|
||||||
#
|
#
|
||||||
*~
|
*~
|
||||||
*.bak
|
*.bak
|
||||||
*.orig
|
*.orig
|
||||||
*.patch
|
*.patch
|
||||||
callgrind.out.*
|
callgrind.out.*
|
||||||
|
|
||||||
.upt.json
|
.upt.json
|
||||||
|
|||||||
0
modules/uwd/mysql-tools/bin/dump-parser
Normal file → Executable file
0
modules/uwd/mysql-tools/bin/dump-parser
Normal file → Executable file
@@ -1,62 +1,62 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# * Copyright (C) 2007 - 2015 Hyperweb2 All rights reserved.
|
# * Copyright (C) 2007 - 2015 Hyperweb2 All rights reserved.
|
||||||
# * GNU General Public License version 3; see www.hyperweb2.com/terms/
|
# * GNU General Public License version 3; see www.hyperweb2.com/terms/
|
||||||
#
|
#
|
||||||
# This file contains login/password information for accessing the MySQL database
|
# This file contains login/password information for accessing the MySQL database
|
||||||
# and is used by all the mysql_* scripts.
|
# and is used by all the mysql_* scripts.
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# MYSQL
|
# MYSQL
|
||||||
#
|
#
|
||||||
|
|
||||||
# change these lines with your mysql config
|
# change these lines with your mysql config
|
||||||
MYSQL_DB=test
|
MYSQL_DB=test
|
||||||
MYSQL_USER=usr
|
MYSQL_USER=usr
|
||||||
MYSQL_PASS=pwd
|
MYSQL_PASS=pwd
|
||||||
MYSQL_HOST=localhost
|
MYSQL_HOST=localhost
|
||||||
#MYSQL_SOCK=/var/lib/mysql/mysql.sock
|
#MYSQL_SOCK=/var/lib/mysql/mysql.sock
|
||||||
|
|
||||||
#
|
#
|
||||||
# File Options
|
# File Options
|
||||||
#
|
#
|
||||||
|
|
||||||
# path of directory where extract separated tables ( without end slash )
|
# path of directory where extract separated tables ( without end slash )
|
||||||
TPATH=./tables
|
TPATH=./tables
|
||||||
|
|
||||||
# (boolean) clean directory before dump, in this way non-existant db tables will be deleted
|
# (boolean) clean directory before dump, in this way non-existant db tables will be deleted
|
||||||
CLEANFOLDER=1
|
CLEANFOLDER=1
|
||||||
|
|
||||||
# path of file to extract database full dump
|
# path of file to extract database full dump
|
||||||
FPATH=./full/full.sql
|
FPATH=./full/full.sql
|
||||||
|
|
||||||
# (boolean) switch to enable(1)/disable(0) the dump/import of full db file
|
# (boolean) switch to enable(1)/disable(0) the dump/import of full db file
|
||||||
# ( you can do it manually using command parameters )
|
# ( you can do it manually using command parameters )
|
||||||
FULL=0
|
FULL=0
|
||||||
|
|
||||||
# (boolean) set 1 to enable --tab option for mysqldump and import data from it
|
# (boolean) set 1 to enable --tab option for mysqldump and import data from it
|
||||||
# it's very fast import/export process but doesn't utilize the insert query
|
# it's very fast import/export process but doesn't utilize the insert query
|
||||||
# NOTE: full db continue to be dumped with normal sql format
|
# NOTE: full db continue to be dumped with normal sql format
|
||||||
# NOTE2: if you have problem with permissions ( mysql errorcode:13) mostly in linux
|
# NOTE2: if you have problem with permissions ( mysql errorcode:13) mostly in linux
|
||||||
# you should enable CHMODE config and disable/edit
|
# you should enable CHMODE config and disable/edit
|
||||||
# some protections such as AppArmor in Ubuntu or SELinux in Fedora..
|
# some protections such as AppArmor in Ubuntu or SELinux in Fedora..
|
||||||
|
|
||||||
TEXTDUMPS=1
|
TEXTDUMPS=1
|
||||||
|
|
||||||
# (boolean) allow to change "TPATH" folder permissions to enable mysql server writing
|
# (boolean) allow to change "TPATH" folder permissions to enable mysql server writing
|
||||||
|
|
||||||
CHMODE=0
|
CHMODE=0
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# TOOLS OPTIONS
|
# TOOLS OPTIONS
|
||||||
#
|
#
|
||||||
|
|
||||||
#number of threads you want to use in TEXT import mode ( you can safely set it to your number of processor increasing process speed )
|
#number of threads you want to use in TEXT import mode ( you can safely set it to your number of processor increasing process speed )
|
||||||
THREADS=1
|
THREADS=1
|
||||||
|
|
||||||
IMPORTOPTS_TEXT="--use-threads=$THREADS --local --compress --delete --lock-tables"
|
IMPORTOPTS_TEXT="--use-threads=$THREADS --local --compress --delete --lock-tables"
|
||||||
|
|
||||||
DUMPOPTS="--skip-comments --skip-set-charset --extended-insert --order-by-primary --single-transaction --quick"
|
DUMPOPTS="--skip-comments --skip-set-charset --extended-insert --order-by-primary --single-transaction --quick"
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "udw/mysql-tools",
|
|
||||||
"dependencies": {
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
},
|
|
||||||
"_comment_keep": "ensure we keep the right git repository configurations",
|
|
||||||
"keep": [
|
|
||||||
".git/config"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user