Fix: Pb with personalise value of mysql port

This commit is contained in:
Laurent Destailleur 2008-05-05 17:21:02 +00:00
parent 102eea7293
commit aa7f3f7c33
3 changed files with 229 additions and 225 deletions

View File

@ -184,6 +184,7 @@ begin
begin begin
//---------------------------------------------- //----------------------------------------------
// renommage du fichier c:/windows/php.ini // renommage du fichier c:/windows/php.ini
//---------------------------------------------- //----------------------------------------------
@ -346,10 +347,13 @@ begin
if not FileExists (destFile) then if not FileExists (destFile) then
begin begin
myport := Page.Values[2];
LoadStringFromFile (srcFile, srcContents); LoadStringFromFile (srcFile, srcContents);
//installDir et version de php //installDir et version de php
StringChange (srcContents, 'WAMPROOT', pathWithSlashes); StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
SaveStringToFile(destFile,srcContents, False); SaveStringToFile(destFile,srcContents, False);
end end
@ -559,6 +563,11 @@ begin
end end
MsgBox('DoliWamp installer will now start Apache and Mysql, this may last from several seconds to one minute after this confirmation.',mbInformation,MB_OK)
// Install services // Install services
batFile := path+'\uninstall_services.bat'; batFile := path+'\uninstall_services.bat';
Exec(batFile, '',path+'\', SW_HIDE, ewWaitUntilTerminated, myResult); Exec(batFile, '',path+'\', SW_HIDE, ewWaitUntilTerminated, myResult);

View File

@ -50,7 +50,7 @@
# #
[client] [client]
port=3307 port=WAMPMYSQLPORT
# SERVER SECTION # SERVER SECTION
@ -63,7 +63,7 @@ port=3307
[doliwampmysqld] [doliwampmysqld]
# The TCP/IP Port the MySQL Server will listen on # The TCP/IP Port the MySQL Server will listen on
port=3307 port=WAMPMYSQLPORT
#Path to installation directory. All paths are usually resolved relative to this. #Path to installation directory. All paths are usually resolved relative to this.
@ -212,8 +212,3 @@ innodb_log_file_size=10M
# depends highly on the application, hardware as well as the OS # depends highly on the application, hardware as well as the OS
# scheduler properties. A too high value may lead to thread thrashing. # scheduler properties. A too high value may lead to thread thrashing.
innodb_thread_concurrency=8 innodb_thread_concurrency=8
[mysqld]
port=3307

View File

@ -3,14 +3,14 @@ REM -----------------------------------
REM This script initialize Mysql root password when password is empty REM This script initialize Mysql root password when password is empty
REM ----------------------------------- REM -----------------------------------
REM echo ---- Show content of script mysqlinitpassword before running it >> doliwamp.log REM echo ---- Show content of script mysqlinitpassword before running it >> doliwamp.log 2>>&1
REM type .\mysqlinitpassword.bat >> doliwamp.log REM type .\mysqlinitpassword.bat >> doliwamp.log 2>>&1
sleep 5 sleep 3
echo ---- Execute script to init mysql password >> doliwamp.log echo ---- Execute script to init mysql password >> doliwamp.log 2>>&1
echo If an error is shown here, rerun this script manually echo If an error is shown here, rerun this script manually >> doliwamp.log 2>>&1
.\bin\mysql\mysqlWAMPMYSQLVERSION\bin\mysqladmin -P WAMPMYSQLPORT -u root password WAMPMYSQLNEWPASSWORD >>doliwamp.log 2>>&1 .\bin\mysql\mysqlWAMPMYSQLVERSION\bin\mysqladmin -P WAMPMYSQLPORT -u root password WAMPMYSQLNEWPASSWORD >>doliwamp.log 2>>&1
echo ---- End script >> doliwamp.log echo ---- End script >> doliwamp.log 2>>&1