日期:2014-05-16  浏览次数:20875 次

绿色版mysql安装使用
一、下载MySQL
http://www.mysql.org/downloads
我下载的是mysql-noinstall-5.0.67-win32.zip
二、安装过程
?1、解压缩
mysql-noinstall-5.0.67-win32.zip 到一个C盘,重新命名为 MySQL5
????? 假定MYSQL_HOME=C:/
MySQL5
?2、编辑mysql的运行配置文件my.ini,如果没有,可以拿my-medium.ini复制然后更名成 my.ini?
[xhtml] view plaincopy
  1. #?Example?MySQL?config?file?for?medium?systems.??
  2. #??
  3. #?This?is?for?a?system?with?little?memory?(32M?-?64M)?where?MySQL?plays??
  4. #?an?important?part,?or?systems?up?to?128M?where?MySQL?is?used?together?with??
  5. #?other?programs?(such?as?a?web?server)??
  6. #??
  7. #?You?can?copy?this?file?to??
  8. #?/etc/my.cnf?to?set?global?options,??
  9. #?mysql-data-dir/my.cnf?to?set?server-specific?options?(in?this??
  10. #?installation?this?directory?is?C:/mysql/data)?or??
  11. #?~/.my.cnf?to?set?user-specific?options.??
  12. #??
  13. #?In?this?file,?you?can?use?all?long?options?that?a?program?supports.??
  14. #?If?you?want?to?know?which?options?a?program?supports,?run?the?program??
  15. #?with?the?"--help"?option.??
  16. ??
  17. #?The?following?options?will?be?passed?to?all?MySQL?clients??
  18. [client]??
  19. #password???=?your_password??
  20. port????????=?3306??
  21. socket??????=?/tmp/mysql.sock??
  22. ??
  23. #?Here?follows?entries?for?some?specific?programs??
  24. ??
  25. #?The?MySQL?server??
  26. [mysqld]??
  27. basedir?=?"C:/MySQL5"??
  28. datadir?=?"C:/MySQL5/data"??
  29. default-character-set=utf8??
  30. ??
  31. port????????=?3306??
  32. socket??????=?/tmp/mysql.sock??
  33. skip-locking??