MySQL silent installation
Hello group,
I have been trying to acheive silent installation for MySQL5.1 server. The server gets installed without any errors but the crucial mysql DB is not initialized.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.21 sec)
I am executing following batch file code:
echo off
cls
echo Starting Install...
set mysql_msi="mysql-essential-5.1.33-win32.msi"
set mysql_svname=MySQL51
rem set mysql_datadir="C:\Program Files\MySQLData\MySQL Server 5.1\data"
set mysql_data2="C:\Program Files\MySQL\MySQL Server 5.1\data"
msiexec /i %mysql_msi% /qb INSTALLDIR="C:\Program Files\MySQL\MySQL Server 5.1\" /L* C:\MSI-MySQL-Log.txt
echo MySQL Version 5.1 installed...
md %mysql_data2%
"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqlinstanceconfig.exe" -i -q "-lC:\mysql_install_log.txt" "-tC:\Program
Files\MySQL\MySQL Server 5.1\my-template.ini" ServiceName=%mysql_svname% RootPassword=mysql123 ServerType=SERVER
DatabaseType=INNODB Port=3306 AddBinToPath=yes StrictMode=yes
echo MySQL Instance Configured...Service started...
--------------------------------------------------------------
Please help.
Subject
Written By
Posted
MySQL silent installation
June 16, 2009 12:04AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.