WAMP 环境构筑相关脚本
#mysqld-nt --install mysql --defaults-file=D:/mysql5/bin/my.ini
cd %apache2%bin
\httpd -k install
cd %tomcat_home%bin
\service.bat install
mysql配置----------
[mysqld] basedir="D:\server\mysql5" datadir="D:\server\mysql5\data"
port = 3306 socket = mysql
old-passwords
#character-set-server = latin1
#collation-server = latin1_general_ci
default-character-set=utf8
skip-character-set-client-handshake
#default-storage-engine=INNODB
#mysqld-nt --install mysql --defaults-file=D:/mysql5/bin/my.ini
#net start MySQL
#update mysql.user set password=PASSWORD("tuur6033") where User='root';
# flush privileges;
#echo default-storage-engine=INNODB >>my.ini
#mysql --user=root mysql
#INSERT INTO user VALUES('localhost','dgc',PASSWORD('dgc'),'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
#GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'pass6033' WITH GRANT OPTION;
#GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'pass6033' WITH GRANT OPTION;