安装环境是win7 64位系统,mysql下载地址:http://www.mysql.com/downloads/mirror.php?id=402885;选择“Univ. of Technology / Vienna, Austria ”后面的“HTTP”下载后解压缩,我放到“C:ProgrameDatamysql-5.5.13-winx64”。
下面是三个常用批处理脚本:
StartMySql.bat
---------
CD C:ProgrameDatamysql-5.5.13-winx64bin
mysqld --console
ShutDownMySql.bat
---------
CD C:ProgrameDatamysql-5.5.13-winx64bin
mysqladmin -u root shutdown
#mysqladmin -u root shutdown可视自己的root口令加上-p xxx
---------
MySql_query.bat
---------
CD C:ProgrameDatamysql-5.5.13-winx64bin
mysql -u root
#mysql -u root -p xxx
2014-08-25 11:22:59