CONNECT_TO_MYSQL_AS_ROOT 544 Bytes
#!/usr/bin/env bash

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


# SANS DOCKER
source install/ENV.sh
#echo $MYSQL_ROOT_LOGIN
#echo $MYSQL_ROOT_PASSWORD

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

mysql -h 127.0.0.1 -u $MYSQL_ROOT_LOGIN -p$MYSQL_ROOT_PASSWORD
#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