Difference between revisions of "SQWareProduction:mysql:etc:sqwmys GlobalVar.cfg"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by BatchUser)
(Tag: Replaced)
m (Updated by BatchUser)
Line 1: Line 1:
 
Configuration file $gvsqw_MysBin/../etc/sqwmys_GlobalVar.cfg:<br>
 
Configuration file $gvsqw_MysBin/../etc/sqwmys_GlobalVar.cfg:<br>
 
{{SQWareProduction_sqwmys_GlobalVar.cfg_presentation}}
 
{{SQWareProduction_sqwmys_GlobalVar.cfg_presentation}}
{{SQWareProduction_sqwmys_GlobalVar.cfg_content}}
+
<br>
{{SQWareProduction_sqwmys_GlobalVar.cfg_explanation}}
+
<br>
 +
File content:
 +
<pre>
 +
export gvsqw_SqwVersionDbms=2024.03
 +
export gvsqw_MysqlSock='$MYSQL_HOME/tmp/$MYSQL_SID.sock'
 +
export gvsqw_MysqlSock='$MYSQL_DATA/tmp/$MYSQL_SID.sock'
 +
export gvsqw_MysqlSock='/tmp/$MYSQL_SID.sock'
 +
export gvsqw_MysqlSock='/var/lib/mysql/mysql.sock'
 +
export gvsqw_MysqlSock='/var/lib/mysqld/mysql.sock'
 +
export gvsqw_MysqlSock='/var/lib64/mysql/mysql.sock'
 +
export gvsqw_MysqlSock='/var/lib64/mysqld/mysql.sock'
 +
export gvsqw_MysqlSock='/tmp/mysql.sock'
 +
export gvsqw_MysqlSock='/run/mysqld/mysqld.sock'
 +
export gvsqw_DbaUser="$gvsqw_UserExec"
 +
export gvsqw_ConnectString='-S $gvsqw_MysqlSock -u $gvsqw_DbaUser'
 +
export gvsqw_DistConnectString='-h $gvsqw_MysqlHost -P $gvsqw_MysqlPort -u$gvsqw_DbaUser -p$gvsqw_DbaUserPasswd'
 +
export gvsqw_SuppArchSlow=30
 +
export gvsqw_RootAdmin='$HOME/${MYSQL_SID}'
 +
export gvsqw_RootAdminDisable='$HOME'
 +
export gvsqw_RootAdminDist='$HOME/admin/mysql/${MYSQL_SID}'
 +
export gvsqw_RootCfg='$gvsqw_RootAdmin/sqwConfig'
 +
export gvsqw_RootDbf='/$(echo ${HOME}|cut -d/ -f2)/data/${MYSQL_SID}'
 +
#export gvsqw_GenExcludeDatabasesWhereClause="and SCHEMA_NAME not in ('SQWareProduction','${MYSQL_SID}','tmp','logs') and SCHEMA_NAME not like '%#%' and SCHEMA_NAME not like '% %'"
 +
export gvsqw_GenExcludeDatabasesWhereClause="and table_schema not like '%#%' and table_schema not like '% %' and table_schema != 'performance_schema' and table_schema != 'sys'"
 +
export gvsqw_DbAlias='$MYSQL_SID'
 +
export gvsqw_NbThreadOptimize=2
 +
export gvsqw_NbThreadAnalyze=2
 +
export gvsqw_NbThreadDump=2
 +
export gvsqw_NbThreadCopyDump=2
 +
export gvsqw_NbThreadRestore=2
 +
export gvsqw_NbThreadCheck=2
 +
export gvsqw_NotMysqlErrorMsg="_ERROR |_FAILED |_ERREUR |_ECHEC |_ERROR_|_FAILED_|_ERREUR_|_ECHEC_|'ERROR |'FAILED |'ERREUR |'ECHEC "
 +
export gvsqw_NotMysqldumpErrorMsg="mysqldump: Error ToBeCustomize"
 +
export gvsqw_SizeMinTableIndicators=10
 +
export gvsqw_GenExcludeDatabasesObjects="and TABLES.TABLE_SCHEMA not in ('performance_schema','mysql','information_schema','sys')"
 +
export gvsqw_GenExcludeDatabasesObjectsExtra=""
 +
export gvsqw_PathList="HOME;gvsqw_RootAdmin;gvsqw_RootCfg;gvsqw_RootDump;gvsqw_RootXtraBackup;gvsqw_RootMariaBackup"
 +
export gvsqw_PathListExtra=""
 +
export gvsqw_RootDump='$HOME/mys_dump/$MYSQL_SID'
 +
export gvsqw_RootDumpSource='$HOME/mys_dump/$lvsqw_InstanceSource'
 +
export gvsqw_ExcludeDatabasesCopy='^mysql$|^information_schema$|^performance_schema$'
 +
export gvsqw_DumpNbGeneration=2
 +
export gvsqw_DumpCompressorExt=gz
 +
export gvsqw_DefCopyDumpNbGeneration=1
 +
export gvsqw_ConsistentInnoDb="--single-transaction --skip-lock-tables"
 +
export gvsqw_ConsistentOthers="--lock-tables"
 +
export gvsqw_MysqlDumpOpt='$gvsqw_ConnectString --create-options -f --max_allowed_packet=1000000000 --net_buffer_length=16M ${lfsqw_SqlOpt}${lvsqw_AdditionalOption} -R -q --databases ${lvsqw_DbName}'
 +
export gvsqw_RsyncDefaultSourceDir='$HOME/mys_dump/$MYSQL_SID'
 +
export gvsqw_DropDb=Enable
 +
export gvsqw_CreateDb=Enable
 +
export gvsqw_OptionsBeforeMySQL=""
 +
export gvsqw_OptionsMySQL=""
 +
export gvsqw_RootXtraBackup='$HOME/XtraBackup/$MYSQL_SID'
 +
export gvsqw_RootXtraBackupSource='$HOME/XtraBackup/$lvsqw_InstanceSource'
 +
export gvsqw_XtraBackupNbGeneration=2
 +
export gvsqw_XtraBackupWaitTimeOut=900
 +
export gvsqw_DefCopyXtraBackupNbGeneration=1
 +
export gvsqw_RootMariaBackup='$HOME/MariaBackup/$MYSQL_SID'
 +
export gvsqw_RootMariaBackupSource='$HOME/MariaBackup/$lvsqw_InstanceSource'
 +
export gvsqw_MariaBackupNbGeneration=2
 +
export gvsqw_MariaBackupWaitTimeOut=900
 +
export gvsqw_DefCopyMariaBackupNbGeneration=1
 +
export gvsqw_NbThreadScp=2
 +
export gvsqw_DefAGR_Scp=10
 +
export gvsqw_DefAGE_Scp=30
 +
export gvsqw_LocalSlowQuery=no
 +
export gvsqw_MysqlDumpSlowOption1='at'
 +
export gvsqw_MysqlDumpSlowOption2='al'
 +
export gvsqw_MysqlDumpSlowOption3='ae'
 +
#export gvsqw_ForcedReturnCodeScript_sqwmys_DumpDatabase=0
 +
#export gvsqw_WebDbaDirSlowQuery='Directory to store SlowQuery files'
 +
</pre>
 +
<br>
 +
<br>
 +
Variables explanation:
 +
<pre>
 +
gvsqw_ConnectString =>
 +
gvsqw_ConsistentInnoDb =>
 +
gvsqw_ConsistentOthers =>
 +
gvsqw_CreateDb =>
 +
gvsqw_DbAlias =>
 +
gvsqw_DbaUser =>
 +
gvsqw_DefAGE_Scp =>
 +
gvsqw_DefAGR_Scp =>
 +
gvsqw_DefCopyDumpNbGeneration =>
 +
gvsqw_DefCopyMariaBackupNbGeneration =>
 +
gvsqw_DefCopyXtraBackupNbGeneration =>
 +
gvsqw_DistConnectString =>
 +
gvsqw_DropDb =>
 +
gvsqw_DumpCompressorExt =>
 +
gvsqw_DumpNbGeneration =>
 +
gvsqw_ExcludeDatabasesCopy =>
 +
#gvsqw_ForcedReturnCodeScript_sqwmys_DumpDatabase =>
 +
gvsqw_GenExcludeDatabasesObjects =>
 +
gvsqw_GenExcludeDatabasesObjectsExtra =>
 +
#gvsqw_GenExcludeDatabasesWhereClause =>
 +
gvsqw_GenExcludeDatabasesWhereClause =>
 +
gvsqw_LocalSlowQuery =>
 +
gvsqw_MariaBackupNbGeneration =>
 +
gvsqw_MariaBackupWaitTimeOut =>
 +
gvsqw_MysqlDumpOpt =>
 +
gvsqw_MysqlDumpSlowOption1 =>
 +
gvsqw_MysqlDumpSlowOption2 =>
 +
gvsqw_MysqlDumpSlowOption3 =>
 +
gvsqw_MysqlSock =>
 +
gvsqw_MysqlSock =>
 +
gvsqw_MysqlSock =>
 +
gvsqw_MysqlSock =>
 +
gvsqw_MysqlSock =>
 +
gvsqw_MysqlSock =>
 +
gvsqw_MysqlSock =>
 +
gvsqw_MysqlSock =>
 +
gvsqw_MysqlSock =>
 +
gvsqw_NbThreadAnalyze =>
 +
gvsqw_NbThreadCheck =>
 +
gvsqw_NbThreadCopyDump =>
 +
gvsqw_NbThreadDump =>
 +
gvsqw_NbThreadOptimize =>
 +
gvsqw_NbThreadRestore =>
 +
gvsqw_NbThreadScp =>
 +
gvsqw_NotMysqldumpErrorMsg =>
 +
gvsqw_NotMysqlErrorMsg =>
 +
gvsqw_OptionsBeforeMySQL =>
 +
gvsqw_OptionsMySQL =>
 +
gvsqw_PathListExtra =>
 +
gvsqw_PathList =>
 +
gvsqw_RootAdmin =>
 +
gvsqw_RootAdminDisable =>
 +
gvsqw_RootAdminDist =>
 +
gvsqw_RootCfg =>
 +
gvsqw_RootDbf =>
 +
gvsqw_RootDump =>
 +
gvsqw_RootDumpSource =>
 +
gvsqw_RootMariaBackup =>
 +
gvsqw_RootMariaBackupSource =>
 +
gvsqw_RootXtraBackup =>
 +
gvsqw_RootXtraBackupSource =>
 +
gvsqw_RsyncDefaultSourceDir =>
 +
gvsqw_SizeMinTableIndicators =>
 +
gvsqw_SqwVersionDbms =>
 +
gvsqw_SuppArchSlow =>
 +
#gvsqw_WebDbaDirSlowQuery =>
 +
gvsqw_XtraBackupNbGeneration =>
 +
gvsqw_XtraBackupWaitTimeOut =>
 +
</pre>
 
{{SQWareProductionSurchargeVar|mysql|Mys|sqwmys_GlobalVar.cfg}}
 
{{SQWareProductionSurchargeVar|mysql|Mys|sqwmys_GlobalVar.cfg}}
 
<br>
 
<br>

Revision as of 15:10, 26 April 2024

Configuration file $gvsqw_MysBin/../etc/sqwmys_GlobalVar.cfg:
Global var for Mysql
It contains the operating variables of SQWareProduction.


File content:

export gvsqw_SqwVersionDbms=2024.03
	export gvsqw_MysqlSock='$MYSQL_HOME/tmp/$MYSQL_SID.sock'
	export gvsqw_MysqlSock='$MYSQL_DATA/tmp/$MYSQL_SID.sock'
	export gvsqw_MysqlSock='/tmp/$MYSQL_SID.sock'
	export gvsqw_MysqlSock='/var/lib/mysql/mysql.sock'
	export gvsqw_MysqlSock='/var/lib/mysqld/mysql.sock'
	export gvsqw_MysqlSock='/var/lib64/mysql/mysql.sock'
	export gvsqw_MysqlSock='/var/lib64/mysqld/mysql.sock'
	export gvsqw_MysqlSock='/tmp/mysql.sock'
	export gvsqw_MysqlSock='/run/mysqld/mysqld.sock'
export gvsqw_DbaUser="$gvsqw_UserExec"
export gvsqw_ConnectString='-S $gvsqw_MysqlSock -u $gvsqw_DbaUser'
export gvsqw_DistConnectString='-h $gvsqw_MysqlHost -P $gvsqw_MysqlPort -u$gvsqw_DbaUser -p$gvsqw_DbaUserPasswd'
export gvsqw_SuppArchSlow=30
export gvsqw_RootAdmin='$HOME/${MYSQL_SID}'
export gvsqw_RootAdminDisable='$HOME'
export gvsqw_RootAdminDist='$HOME/admin/mysql/${MYSQL_SID}'
export gvsqw_RootCfg='$gvsqw_RootAdmin/sqwConfig'
export gvsqw_RootDbf='/$(echo ${HOME}|cut -d/ -f2)/data/${MYSQL_SID}'
#export gvsqw_GenExcludeDatabasesWhereClause="and SCHEMA_NAME not in ('SQWareProduction','${MYSQL_SID}','tmp','logs') and SCHEMA_NAME not like '%#%' and SCHEMA_NAME not like '% %'"
export gvsqw_GenExcludeDatabasesWhereClause="and table_schema not like '%#%' and table_schema not like '% %' and table_schema != 'performance_schema' and table_schema != 'sys'"
export gvsqw_DbAlias='$MYSQL_SID'
export gvsqw_NbThreadOptimize=2
export gvsqw_NbThreadAnalyze=2
export gvsqw_NbThreadDump=2
export gvsqw_NbThreadCopyDump=2
export gvsqw_NbThreadRestore=2
export gvsqw_NbThreadCheck=2
export gvsqw_NotMysqlErrorMsg="_ERROR |_FAILED |_ERREUR |_ECHEC |_ERROR_|_FAILED_|_ERREUR_|_ECHEC_|'ERROR |'FAILED |'ERREUR |'ECHEC "
export gvsqw_NotMysqldumpErrorMsg="mysqldump: Error ToBeCustomize"
export gvsqw_SizeMinTableIndicators=10
export gvsqw_GenExcludeDatabasesObjects="and TABLES.TABLE_SCHEMA not in ('performance_schema','mysql','information_schema','sys')"
export gvsqw_GenExcludeDatabasesObjectsExtra=""
export gvsqw_PathList="HOME;gvsqw_RootAdmin;gvsqw_RootCfg;gvsqw_RootDump;gvsqw_RootXtraBackup;gvsqw_RootMariaBackup"
export gvsqw_PathListExtra=""
export gvsqw_RootDump='$HOME/mys_dump/$MYSQL_SID'
export gvsqw_RootDumpSource='$HOME/mys_dump/$lvsqw_InstanceSource'
export gvsqw_ExcludeDatabasesCopy='^mysql$|^information_schema$|^performance_schema$'
export gvsqw_DumpNbGeneration=2
export gvsqw_DumpCompressorExt=gz
export gvsqw_DefCopyDumpNbGeneration=1
export gvsqw_ConsistentInnoDb="--single-transaction --skip-lock-tables"
export gvsqw_ConsistentOthers="--lock-tables"
export gvsqw_MysqlDumpOpt='$gvsqw_ConnectString --create-options -f --max_allowed_packet=1000000000 --net_buffer_length=16M ${lfsqw_SqlOpt}${lvsqw_AdditionalOption} -R -q --databases ${lvsqw_DbName}'
export gvsqw_RsyncDefaultSourceDir='$HOME/mys_dump/$MYSQL_SID'
export gvsqw_DropDb=Enable
export gvsqw_CreateDb=Enable
export gvsqw_OptionsBeforeMySQL=""
export gvsqw_OptionsMySQL=""
export gvsqw_RootXtraBackup='$HOME/XtraBackup/$MYSQL_SID'
export gvsqw_RootXtraBackupSource='$HOME/XtraBackup/$lvsqw_InstanceSource'
export gvsqw_XtraBackupNbGeneration=2
export gvsqw_XtraBackupWaitTimeOut=900
export gvsqw_DefCopyXtraBackupNbGeneration=1
export gvsqw_RootMariaBackup='$HOME/MariaBackup/$MYSQL_SID'
export gvsqw_RootMariaBackupSource='$HOME/MariaBackup/$lvsqw_InstanceSource'
export gvsqw_MariaBackupNbGeneration=2
export gvsqw_MariaBackupWaitTimeOut=900
export gvsqw_DefCopyMariaBackupNbGeneration=1
export gvsqw_NbThreadScp=2
export gvsqw_DefAGR_Scp=10
export gvsqw_DefAGE_Scp=30
export gvsqw_LocalSlowQuery=no
export gvsqw_MysqlDumpSlowOption1='at'
export gvsqw_MysqlDumpSlowOption2='al'
export gvsqw_MysqlDumpSlowOption3='ae'
#export gvsqw_ForcedReturnCodeScript_sqwmys_DumpDatabase=0
#export gvsqw_WebDbaDirSlowQuery='Directory to store SlowQuery files'



Variables explanation:

gvsqw_ConnectString => 
gvsqw_ConsistentInnoDb => 
gvsqw_ConsistentOthers => 
gvsqw_CreateDb => 
gvsqw_DbAlias => 
gvsqw_DbaUser => 
gvsqw_DefAGE_Scp => 
gvsqw_DefAGR_Scp => 
gvsqw_DefCopyDumpNbGeneration => 
gvsqw_DefCopyMariaBackupNbGeneration => 
gvsqw_DefCopyXtraBackupNbGeneration => 
gvsqw_DistConnectString => 
gvsqw_DropDb => 
gvsqw_DumpCompressorExt => 
gvsqw_DumpNbGeneration => 
gvsqw_ExcludeDatabasesCopy => 
#gvsqw_ForcedReturnCodeScript_sqwmys_DumpDatabase => 
gvsqw_GenExcludeDatabasesObjects => 
gvsqw_GenExcludeDatabasesObjectsExtra => 
#gvsqw_GenExcludeDatabasesWhereClause => 
gvsqw_GenExcludeDatabasesWhereClause => 
gvsqw_LocalSlowQuery => 
gvsqw_MariaBackupNbGeneration => 
gvsqw_MariaBackupWaitTimeOut => 
gvsqw_MysqlDumpOpt => 
gvsqw_MysqlDumpSlowOption1 => 
gvsqw_MysqlDumpSlowOption2 => 
gvsqw_MysqlDumpSlowOption3 => 
	gvsqw_MysqlSock => 
	gvsqw_MysqlSock => 
	gvsqw_MysqlSock => 
	gvsqw_MysqlSock => 
	gvsqw_MysqlSock => 
	gvsqw_MysqlSock => 
	gvsqw_MysqlSock => 
	gvsqw_MysqlSock => 
	gvsqw_MysqlSock => 
gvsqw_NbThreadAnalyze => 
gvsqw_NbThreadCheck => 
gvsqw_NbThreadCopyDump => 
gvsqw_NbThreadDump => 
gvsqw_NbThreadOptimize => 
gvsqw_NbThreadRestore => 
gvsqw_NbThreadScp => 
gvsqw_NotMysqldumpErrorMsg => 
gvsqw_NotMysqlErrorMsg => 
gvsqw_OptionsBeforeMySQL => 
gvsqw_OptionsMySQL => 
gvsqw_PathListExtra => 
gvsqw_PathList => 
gvsqw_RootAdmin => 
gvsqw_RootAdminDisable => 
gvsqw_RootAdminDist => 
gvsqw_RootCfg => 
gvsqw_RootDbf => 
gvsqw_RootDump => 
gvsqw_RootDumpSource => 
gvsqw_RootMariaBackup => 
gvsqw_RootMariaBackupSource => 
gvsqw_RootXtraBackup => 
gvsqw_RootXtraBackupSource => 
gvsqw_RsyncDefaultSourceDir => 
gvsqw_SizeMinTableIndicators => 
gvsqw_SqwVersionDbms => 
gvsqw_SuppArchSlow => 
#gvsqw_WebDbaDirSlowQuery => 
gvsqw_XtraBackupNbGeneration => 
gvsqw_XtraBackupWaitTimeOut => 
Nuvola apps information.png
Note:
You can overload variables contain in $gvsqw_MysBin/../etc/sqwmys_GlobalVar.cfg

by the same variables in $gvsqw_MysBin/../etc_cust/sqwmys_GlobalVar.cfg for all your environnement
or in $HOME/sqwConfig/sqwmys_GlobalVar.cfg specifically for this user.