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
相关文档:
源地址: http://www.pcppc.cn/shujuku/mysql/shujuku_163919.html
您正在看的MySQL教程是:MySQL数据库学习笔记。
MySQL数据库学习笔记
(实验环境:Redhat9.0,MySQL3.23.54)
纲要:
一,连接MySQL
二,MySQL管理与授权
三,数据库简单操作
四, ......
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 ......
1,忘记root密码,如果能还能进入mysql且还有mysql库的权限,那么就直接执行 update user set password=password(‘XXX’) where user=’root’ and host=’XX’; flush privileges; 即可.如果不能进入mysql,需要有mysql启动的权限,在启动mysql的时候加上--skip-grant-tables选项,此时进入mysql无需密码,再重复上述操 ......
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, ......
S- serv提权方式人人都会用了,搞得现在的主机都配置得非常安全,看来攻击手法的层出不穷也是造成中国网络安全进步的一大原因之一,还有其他的 pcanywhere获取密码,替换服务,等等。但是现在也没这么好搞了,随着安全意识的提高,之前的方式估计不怎么管用,现在我给大家介绍一下一种新的提权方式,看过古典LM做的那动画的 ......