易截截图软件、单文件、免安装、纯绿色、仅160KB

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


相关文档:

cmd 命令行下mysql的知识


*************************字符串函数***********************************
mysql> select concat('aa','bb');//字符串的连接
mysql> select insert ('beijing2008you',12,3,'me');//字符串的插入
+-------------------------------------+
| insert ('beijing2008you',12,3,'me') |
+----------------------- ......

Installing Ruby 1.8.6 from Source on Ubuntu

Installing Ruby from source is my preferred method, although in Ubuntu Feisty you can supposedly install it with apt-get install ruby
now. Here’s the essential packages needed to get a source build working right though and the process I just went through:
sudo apt-get install build-essentia ......

将日志文件写入MySqL中

首先建一个工程,准备好一个log4j的jar包和连接MySqL的驱动包。配置如下:
修改log4j.properties文件:
######## #此句为定义名为stdout的输出端是哪种类型,可以是
#org.apache.log4j.ConsoleAppender(控制台),
#org.apache.log4j.FileAppender(文件),
#org.apache.log4j.DailyRollingFileAppender(每天产生一 ......

Zend FrameWok中调用mysql的存储过程

在Zend FrameWork中调用mysql的存储过程方法如下:
$db = Zend_Db::factory($sql_DbType,$sql_Config);
$connection=$db->getConnection();
Zend_Registry::set("db",$db);
Zend_Registry::set("connect",$connection);
调用存储过程如下代码所示:
$this->_db = Zend_Registry::get('db');
$connection=Zend_ ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号