HEX
Server: Apache
System: Linux darrell.nocdirect.com 4.18.0-513.18.2.el8_9.x86_64 #1 SMP Sat Mar 30 06:10:41 EDT 2024 x86_64
User: joderbya (1358)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/joderbya/quick-step-ei.com/dollibar/mysqlinitpassword.bat.install
@echo off
REM -----------------------------------
REM This script initialize Mysql root password WHEN PASSWORD IS EMPTY.
REM An error is returned IF PASSWORD IS ALREADY SET.
REM -----------------------------------
REM To change password, run following SQL command: 
REM GRANT ALL ON *.* TO login@localhost IDENTIFIED BY "newpassword"

REM echo ---- Show content of script mysqlinitpassword before running it >> doliwamp.log 2>>&1
REM type .\mysqlinitpassword.bat >> doliwamp.log 2>>&1 

REM Wait the mysql init by first startup is ok
REM sleep is not a windows command
REM sleep 5
ping 1.1.1.1 -n 1 -w 5000 > nul

echo ---- Execute mysqlinitpassword.bat to init mysql password >> doliwamp.log 2>>&1
echo For a first installation, if an error is shown here, rerun the script manually. >> doliwamp.log 2>>&1
echo For an update, you will get an "Access denied" error, ignore this error. >> doliwamp.log 2>>&1
.\bin\mysql\mysqlWAMPMYSQLVERSION\bin\mysqladmin -v -w6 -P WAMPMYSQLPORT -u root password WAMPMYSQLNEWPASSWORD >> doliwamp.log 2>>&1

echo ---- End script >> doliwamp.log 2>>&1