SQWareProduction:generic:etc:sqwgen DbRefVar.cfg : Différence entre versions

De WikiFr_dbSQWare
Aller à : navigation, rechercher
m (Updated by BatchUser)
m (Updated by BatchUser)
 
(56 révisions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
Fichier de configuration $gvsqw_GenBin/../etc/sqwgen_DbRefVar.cfg:<br>
+
Configuration file $gvsqw_GenBin/../etc/sqwgen_DbRefVar.cfg:<br>
 
{{SQWareProduction_sqwgen_DbRefVar.cfg_presentation}}
 
{{SQWareProduction_sqwgen_DbRefVar.cfg_presentation}}
<br>
+
{{SQWareProduction_sqwgen_DbRefVar.cfg_content}}
<br>
+
{{SQWareProduction_sqwgen_DbRefVar.cfg_explanation}}
Contenu du fichier:
 
<pre>
 
export gvsqw_DbRefPort='3306'
 
export gvsqw_DbRefHost='SQWareRepositoryHost'
 
export gvsqw_DbRefDatabase='dbsqware_db'
 
export gvsqw_DbRefUser='dbsqware_user'
 
export gvsqw_DbRefPass='OctopusDBA_dbSQWare123'
 
# export gvsqw_BounceServerUserConn='mysql_user@BounceServer'
 
</pre>
 
<br>
 
<br>
 
Explication des variables:
 
<pre>
 
# gvsqw_BounceServerUserConn =>
 
gvsqw_DbRefDatabase =>
 
gvsqw_DbRefHost =>
 
gvsqw_DbRefPass =>
 
gvsqw_DbRefPort =>
 
gvsqw_DbRefUser =>
 
</pre>
 
 
{{SQWareProductionSurchargeVar|generic|Gen|sqwgen_DbRefVar.cfg}}
 
{{SQWareProductionSurchargeVar|generic|Gen|sqwgen_DbRefVar.cfg}}
 
<br>
 
<br>

Version actuelle datée du 31 octobre 2024 à 15:49

Configuration file $gvsqw_GenBin/../etc/sqwgen_DbRefVar.cfg:
Global var for SQWareRepository connexion
Contient les variables operationnelles de SQWareProduction.

Contenu du fichier:

#!/bin/ksh
###################################################################
# SQWareProduction for Mysql module of dbSQWare is developped with GPL License 3.0 :
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# dbSQWare is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
# 
# For information : contact@dbsqware.com or www.dbsqware.com
###################################################################
## @Synopsis	Global var for SQWareRepository connexion
## @Copyright	Copyright 2010-2014, OctopusDBA (www.octopusdba.com)
## @License	GPL v3

if [ "$gvsqw_Debug" != "" ]
then
	echo "sourcing cfg file : .../SQWareProduction/generic/etc/sqwgen_DbRefVar.cfg"
fi
export gvsqw_DbRefPort='3306'
export gvsqw_DbRefHost='SQWareRepositoryHost'
export gvsqw_DbRefDatabase='dbsqware_db'
export gvsqw_DbRefUser='dbsqware_user'
export gvsqw_DbRefPass='OctopusDBA_dbSQWare123'

# ssh connection to bounce server for indicators (for MySQL inserts)
# export gvsqw_BounceServerUserConn='mysql_user@BounceServer'

###################################################################################################
###################################################################################################

# Source custom
eval lvsqw_Tmp="\$gvsqw_${gvsqw_RdbmsTrigram}Bin"
if [ -r $gvsqw_GenPath/../../generic/etc_cust/sqwgen_DbRefVar.cfg ]
then
		if [ "$gvsqw_Debug" != "" ]
		then
			echo "sourcing cfg file : $gvsqw_GenPath/../../generic/etc_cust/sqwgen_DbRefVar.cfg"
		fi
	. $gvsqw_GenPath/../../generic/etc_cust/sqwgen_DbRefVar.cfg
elif  [ -r $lvsqw_Tmp/../../generic/etc_cust/sqwgen_DbRefVar.cfg ]
then
		if [ "$gvsqw_Debug" != "" ]
		then
			echo "sourcing cfg file : $lvsqw_Tmp/../../generic/etc_cust/sqwgen_DbRefVar.cfg"
		fi
	. $lvsqw_Tmp/../../generic/etc_cust/sqwgen_DbRefVar.cfg
fi

# For not normed environnement
if [ -r $HOME/sqwConfig/sqwgen_DbRefVar.cfg ]
then
		if [ "$gvsqw_Debug" != "" ]
		then
			echo "sourcing cfg file : $HOME/sqwConfig/sqwgen_DbRefVar.cfg"
		fi
		. $HOME/sqwConfig/sqwgen_DbRefVar.cfg
fi


Explication de variables:


Information.png
Information:
Vous pouvez surcharger les variables contenues dans $gvsqw_GenBin/../etc/sqwgen_DbRefVar.cfg

en mettant les memes noms de variables dans $gvsqw_GenBin/../etc_cust/sqwgen_DbRefVar.cfg pour tous vos environnements
ou dans $HOME/sqwConfig/sqwgen_DbRefVar.cfg pour cet utilisateur specialement.