Blame view

CONNECT_TO_MYSQL_AS_USER 538 Bytes
d84529c1   Etienne Pallier   ajout scripts con...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

# AVEC DOCKER ?
if [[ -f ../DOCKER_LABINVENT_DB_USER ]] ; then
	cd ../
	./DOCKER_LABINVENT_DB_USER
	exit
fi


# SANS DOCKER
source install/ENV.sh
#echo $MYSQL_USER
#echo $MYSQL_PASSWORD

#echo $MYSQL_PORT #127.0.0.1:3307
#MYSQL_PORT=$(echo "$MYSQL_PORT" | cut -d':' -f 2)
#echo $MYSQL_PORT #3307

6694b167   Etienne Pallier   update scripts CO...
20
mysql $MYSQL_DATABASE -h 127.0.0.1 -u $MYSQL_USER -p$MYSQL_PASSWORD
d84529c1   Etienne Pallier   ajout scripts con...
21
22
#mysql -h 127.0.0.1 -u $MYSQL_USER -P $MYSQL_PORT --protocol=tcp -p$MYSQL_PASSWORD
#mysql -h 127.0.0.1 -u $MYSQL_USER -P $MYSQL_PORT -p$MYSQL_PASSWORD