ruby gem mysql on cygwin
1. 安装Cygwin
运行Cygwin的安装程序。从文见包的的列表中,在DEV里面,确定要选择
• Ruby
• gcc
• subversion
你需要使用gcc来建立Cygwin版本的MySQL.
2. 在windows上面安装MYSQL:
download MySQL 5.0 Windows Installer
3. 安装MySQL generic source package并且建立它
把tarball释放到一个临时文件。
./configure
make install
4. 安装Ruby Gems
按照正常方式安装,下载Download Gems 释放并安装。
5. 安装Rails:
现在你已经有Gems,你可以安装Rails. 执行:
gem insall rails –include-dependencies
6. 安装mysql gem
运行gem安装mysql。 当出现选择时候,不要安装mswin32,
要安装最新的Unix 版本。
扩展的安装指令(这里没有全部翻译都是安装Cygwin的指令)
但是有一句话要重点说:Windows isn’t the greatest environment for development.
Windows并不是很好的开发环境。
Thanks for http://wiki.rubyonrails.org/rails/pages/RailsonWindowsCygwin
相关文档:
MySQL的数据表类型很多,MySQL一共向用户提供了包括DBD、HEAP、ISAM、MERGE、MyIAS、InnoDB以及Gemeni这7种表。其中DBD、InnoDB属于事务安全类表,而其他属于事务非安全类表。
DBD
Berkeley DB(DBD)表是支持事务处理的表,由Sleepycat软件公司开发。它提供MySQL用户期待已久的功能--事务控制。事务控制在任何数据库系统中 ......
在phpmyadmin的根目录下建立config.inc.php
写入如下代码:
<?php
//phpmyadmin 配置文件
//本地MySQL数据库
$i=1;
$cfg['Servers'][$i]['host'] =
'localhost';
$cfg['Servers'][$i]['user'] ......
转自51testing.com, 原见:http://bbs.51testing.com/thread-171535-1-1.html http://swik.net/Watir+Programming
http://www.pragprog.com/ #很多好的源码哦
http://docs.rubygems.org/ #rubygems
http://www.fxruby.org/ #fxruby
http://groups.google.com/group/watir-general/topics #goog ......
Update: This post is outdated. All in one installer for 1.9
is ready now, you should use it if you need 1.9 on windows. Get it here
http://rubyforge.org/frs/?group_id=167
Ruby has “all-in-one” installer for Windows, but it is outdated. As
of May 2009, Ruby 1.9.1 is released, ......