<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Ruby</title>
        <description>Forum for MySQL and Ruby</description>
        <link>http://forums.mysql.com/list.php?116</link>
        <lastBuildDate>Tue, 21 May 2013 16:57:49 +0000</lastBuildDate>
        <generator>Phorum 5.2.19</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?116,585585,585585#msg-585585</guid>
            <title>Using rails comparison operator in dev/production (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,585585,585585#msg-585585</link>
            <description><![CDATA[ We had a production error using MySQL with latest rails 3.2 ruby 1.9.3 and MySQL fork.<br />
In some cases we used in ActiveRecord (by mistake) statements the &quot;==&quot; comparison operator. <br />
<br />
The problem is that it did work in development.<br />
Using it in production would not be translated by rails active record to the correct SQL statement. (Occured in <a href="http://www.tipter.com/blogmytrip"  rel="nofollow">http://www.tipter.com/blogmytrip</a>)]]></description>
            <dc:creator>Simon Boyd</dc:creator>
            <category>Ruby</category>
            <pubDate>Mon, 06 May 2013 12:22:28 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,564897,564897#msg-564897</guid>
            <title>differences between prepare(stmt) and query(stmt) results (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,564897,564897#msg-564897</link>
            <description><![CDATA[ I wanted to run a query where tested values changed in a loop.<br />
<br />
Code was as follows:<br />
<br />
query = 'SELECT meetings.meetings_key, meetings.meetings_date, meetings.title ' +<br />
'FROM meetings, meeting_types ' +<br />
'WHERE meetings.type_key = meeting_types.meeting_types_key ' +<br />
&quot;and meeting_types.meeting_type = ? &quot; +<br />
&quot; AND year(meetings.meetings_date) &gt;= ? &quot; +<br />
'ORDER BY meetings.meetings_key'<br />
<br />
sth = @dbh.prepare(query)<br />
type = 'Board'<br />
year = '2012'<br />
sth.execute(type,year)<br />
row = sth.fetch<br />
puts &quot;#{sth} , #{row.class} - #{row}&quot;<br />
puts &quot;#{row[0].class} , #{row[1].class} , #{row[2].class}&quot;<br />
<br />
This resulted in the following result:<br />
<br />
#&lt;Mysql::Stmt:0x00000000affff0&gt; , Array - [6, #&lt;Mysql::Time:2012-01-11 00:00:00&gt;, &quot;Jan board meeting&quot;]<br />
Fixnum , Mysql::Time , String<br />
<br />
The result has the data typed as it will be used.<br />
I wanted to be able to get the result as a hash, but fetch_hash was not available.<br />
Looking further I found that fetch_hash is only available if I used query(stmt).<br />
<br />
Running the following works:<br />
<br />
query = 'SELECT meetings.meetings_key, meetings.meetings_date, meetings.title ' +<br />
'FROM meetings, meeting_types ' +<br />
'WHERE meetings.type_key = meeting_types.meeting_types_key ' +<br />
&quot;and meeting_types.meeting_type = \'Board\' &quot; +<br />
&quot; AND year(meetings.meetings_date) &gt;= \'2012\' &quot; +<br />
'ORDER BY meetings.meetings_key'<br />
<br />
sth = @dbh.query(query)<br />
row = sth.fetch_row<br />
puts &quot;#{sth} , #{row.class} - #{row}&quot;<br />
puts &quot;#{row[0].class} , #{row[1].class} , #{row[2].class}&quot;<br />
<br />
But this returns :<br />
<br />
#&lt;Mysql::Result:0x00000000aff938&gt; , Array - [&quot;6&quot;, &quot;2012-01-11&quot;, &quot;Jan board meeting&quot;]<br />
String , String , String<br />
<br />
Why the difference? I would really like to ba able to use fetch_hash with a<br />
prepared statement or get the data in the form of the prepare results.]]></description>
            <dc:creator>Donald Leslie</dc:creator>
            <category>Ruby</category>
            <pubDate>Mon, 13 Aug 2012 16:48:39 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,558702,558702#msg-558702</guid>
            <title>Google imap error (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,558702,558702#msg-558702</link>
            <description><![CDATA[ I have created an application in PHP. I have also create a script in this application which reads inbox messages from my Gmail account. It is successfully executing at localhost but giving error on remote. I have tried almost every possible alternate as I understand but not succeed. It gives me following error at remote <br />
<br />
imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX<br />
<br />
I have used alternate imap's address from different forum discussion but not it not working.<br />
<br />
My remote information as following:<br />
Apache version	2.2.15<br />
PHP version	5.2.9<br />
MySQL version	5.0.95-community-log<br />
Operating system	linux<br />
<br />
and having dedicated IP.<br />
<br />
On the other hand, Localhost information as following:<br />
<br />
Appache 2.2.17<br />
PHP 5.3.5<br />
MYSQL 5.5.8<br />
<br />
Is this because of this difference??? or any other reason?<br />
<br />
<br />
<br />
Thanks in advance<br />
Kristen<br />
<a href="http://www.seomanualsubmit.com"  rel="nofollow">http://www.seomanualsubmit.com</a>]]></description>
            <dc:creator>Kristen Morey</dc:creator>
            <category>Ruby</category>
            <pubDate>Mon, 25 Jun 2012 12:37:04 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,519642,519642#msg-519642</guid>
            <title>Error with MySQL and Rails 3.1.0 (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,519642,519642#msg-519642</link>
            <description><![CDATA[ I am getting this error during the instalation of an application Rails:<br />
<br />
Gem files will remain installed in /home/mark/.bundler/tmp/28288/gems/mysql2-0.2.17 for inspection. Results logged to /home/mark/.bundler/tmp/28288/gems/mysql2-0.2.17/ext/mysql2/gem_make.out An error occured while installing mysql2 (0.2.17), and Bundler cannot continue. Make sure that gem install mysql2 -v '0.2.17' succeeds before bundling.<br />
<br />
Can you help me to resolved the problem.]]></description>
            <dc:creator>Gianna Bosanquet</dc:creator>
            <category>Ruby</category>
            <pubDate>Mon, 12 Mar 2012 09:36:41 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,514342,514342#msg-514342</guid>
            <title>Ruby on Rails Developer - Why Ruby its a technology to really consider? (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,514342,514342#msg-514342</link>
            <description><![CDATA[ Hi,<br />
<br />
 Why Ruby on Rails is a technology to really consider?<br />
<br />
 Really its the replacement for Java?<br />
<br />
 <a href="http://innoppl.com/ruby-on-rails"  rel="nofollow">http://innoppl.com/ruby-on-rails</a>]]></description>
            <dc:creator>Daniel Jackson</dc:creator>
            <category>Ruby</category>
            <pubDate>Thu, 09 Feb 2012 10:31:29 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,514060,514060#msg-514060</guid>
            <title>store the image path in MySQL w/ Ruby API (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,514060,514060#msg-514060</link>
            <description><![CDATA[ Background: Ruby API  is used to retrieve data from MySQL. This Ruby API is being used in Google SketchUp for some project.<br />
<br />
Query:<br />
I need to know how to store the image path using Ruby API not PHP in MySQl.<br />
<br />
Is it possible to store the image path in MySQL without using any programming language?]]></description>
            <dc:creator>Jeny Joshi</dc:creator>
            <category>Ruby</category>
            <pubDate>Mon, 06 Feb 2012 15:06:17 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,510966,510966#msg-510966</guid>
            <title>Mysql connection with rails (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,510966,510966#msg-510966</link>
            <description><![CDATA[ I have a problem connecting mysql with rails.I have by default connection to sqlite3.Please help because i have a project on ruby on rails and the connection with the database is the most important part.I have also consider to download sqlite3 gui(like workbench in mysql) and work with the current server.<br />
I have spent days on that issue and i haven't found a solution.]]></description>
            <dc:creator>Mario Nikolaou</dc:creator>
            <category>Ruby</category>
            <pubDate>Fri, 20 Jan 2012 18:17:33 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,506882,506882#msg-506882</guid>
            <title>table field information returning wrong length in 5.5.16 (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,506882,506882#msg-506882</link>
            <description><![CDATA[ I have an application where I use the table field sizes to set widths in a gtk form.<br />
<br />
After doing updating my system to opensuse 12.1 the forms no longer had the correct sizes. MySQL had been updated to V14.14 Distrib 5.5.16 x86_64. I do not know what it had been previously.<br />
<br />
The code which was failing had the following:<br />
<br />
info =  dbh.list_fields<br />
info.fetch_fields.each do |fields|<br />
  field_info = field.hash<br />
<br />
For example a field with the type varchar(40) field_info['length'] had the value 120. I had another system where I had also updated opensuse but I had installed <br />
V14.14 Distrib 5.5.19 x86_64. As a result I removed mysql and installed the later<br />
version and the problem went away.<br />
<br />
5.5.16 is the version available from the suse repository. To get 5.5.19 I had to go to your web site.]]></description>
            <dc:creator>Donald Leslie</dc:creator>
            <category>Ruby</category>
            <pubDate>Tue, 27 Dec 2011 19:49:06 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,505585,505585#msg-505585</guid>
            <title>Xml Problem (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,505585,505585#msg-505585</link>
            <description><![CDATA[ Hellow!<br />
I have a site : <a href="http://get-big.info"  rel="nofollow">http://get-big.info</a> and i get a problem!<br />
I have a error between header and content!<br />
Who can t help me to take this error out?pls]]></description>
            <dc:creator>Get Big</dc:creator>
            <category>Ruby</category>
            <pubDate>Tue, 13 Dec 2011 14:11:44 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,494212,494212#msg-494212</guid>
            <title>Launching Server for Rails (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,494212,494212#msg-494212</link>
            <description><![CDATA[ I have seen some people have the same problem, but haven't been able to apply their solution to solve my problem. I have Ruaby and rails set to start but when I attempt to launch the mysql server I get the following error:<br />
<br />
/Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle: dlopen(/Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError)<br />
  Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle<br />
  Reason: image not found - /Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle<br />
<br />
Does anyone have a solution for this?]]></description>
            <dc:creator>Pedro Guedes</dc:creator>
            <category>Ruby</category>
            <pubDate>Wed, 02 Nov 2011 21:18:17 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,490857,490857#msg-490857</guid>
            <title>RoR not pulling data from table (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,490857,490857#msg-490857</link>
            <description><![CDATA[ hey i'm new to RoR with mysql and i'm having a problem.<br />
<br />
i set up a rails app with mysql, created a database in mysql in the terminal, created a table in the database. when i display the data in my browser after further configuring, it would seem as if the table is empty because the table data isn't displaying. i know it's not an issue with configuration as the table name shows up, just not the contents within it. i'm pretty baffled with why this is happeneing...any advice would be welcome]]></description>
            <dc:creator>david taylor</dc:creator>
            <category>Ruby</category>
            <pubDate>Thu, 27 Oct 2011 01:23:26 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,484307,484307#msg-484307</guid>
            <title>ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,484307,484307#msg-484307</link>
            <description><![CDATA[ Since yesterday I am trying to set up mysql on my Lion. I am not able to start mysql client through terminal. I have tried a lot of things as I found on google. Can someone please have a look and let me know if I am doing a blunder or similar?<br />
<br />
➜  expertiza git:(master) ✗ bundle install<br />
Using rake (0.9.2)<br />
Using RedCloth (4.2.8)<br />
Using activesupport (2.3.14)<br />
Using rack (1.1.2)<br />
Using actionpack (2.3.14)<br />
Using actionmailer (2.3.14)<br />
Using activerecord (2.3.14)<br />
Using activeresource (2.3.14)<br />
Using builder (2.1.2)<br />
Using highline (1.6.2)<br />
Using net-ssh (2.2.1)<br />
Using net-scp (1.0.4)<br />
Using net-sftp (2.0.5)<br />
Using net-ssh-gateway (1.1.0)<br />
Using capistrano (2.9.0)<br />
Using culerity (0.2.15)<br />
Using mime-types (1.16)<br />
Using nokogiri (1.5.0)<br />
Using rack-test (0.6.1)<br />
Using ffi (1.0.10)<br />
Using childprocess (0.2.2)<br />
Using json_pure (1.6.1)<br />
Using rubyzip (0.9.4)<br />
Using selenium-webdriver (2.8.0)<br />
Using capybara (0.3.9)<br />
Using cgi_multipart_eof_fix (2.5.0)<br />
Using columnize (0.3.4)<br />
Using diff-lcs (1.1.3)<br />
Using json (1.4.6)<br />
Using term-ansicolor (1.0.7)<br />
Using gherkin (2.2.9)<br />
Using cucumber (0.9.4)<br />
Using cucumber-rails (0.3.2)<br />
Using daemons (1.1.4)<br />
Using database_cleaner (0.6.7)<br />
Using expertiza-authlogic (2.1.6.1)<br />
Using fastercsv (1.5.4)<br />
Using fastthread (1.0.7)<br />
Using gdata (1.1.2)<br />
Using gem_plugin (0.2.3)<br />
Using hoptoad_notifier (2.4.11)<br />
Using rbx-require-relative (0.0.5)<br />
Using linecache (0.46)<br />
Using mongrel (1.1.5)<br />
Using mysql (2.8.1)<br />
Using rails (2.3.14)<br />
Using rdoc (3.11)<br />
Using stream (0.5)<br />
Using rgl (0.4.0)<br />
Using ruby-debug-base (0.10.4)<br />
Using ruby-debug (0.10.4)<br />
Using bundler (1.0.21)<br />
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.<br />
<br />
➜  sockets git:(master) ✗ brew upgrade mysql<br />
==&gt; Upgrading mysql<br />
==&gt; Downloading <a href="http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.15.tar.g"  rel="nofollow">http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.15.tar.g</a><br />
File already downloaded in /Users/vsingh3/Library/Caches/Homebrew<br />
Error: MD5 mismatch<br />
Expected: 306b5549c7bd72e8e705a890db0da82b<br />
Got: d41d8cd98f00b204e9800998ecf8427e<br />
Archive: /Users/vsingh3/Library/Caches/Homebrew/mysql-5.5.15.tar.gz<br />
(To retry an incomplete download, remove the file above.)<br />
<br />
➜  expertiza git:(master) ✗ mysql -u root -p<br />
Enter password:<br />
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)<br />
<br />
➜  expertiza git:(master) ✗ cd tmp<br />
<br />
➜  tmp git:(master) ✗ cd sockets<br />
<br />
➜  sockets git:(master) ✗ ls<br />
mysql.sock<br />
<br />
➜  sockets git:(master) ✗ vim mysql.sock<br />
mysql.default_socket =/expertiza/tmp/sockets/mysql.sock --- I wrote this in mysql.sock file.]]></description>
            <dc:creator>vartika singh</dc:creator>
            <category>Ruby</category>
            <pubDate>Thu, 20 Oct 2011 23:30:31 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,432934,432934#msg-432934</guid>
            <title>Connecting MySQL to Ruby problem (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,432934,432934#msg-432934</link>
            <description><![CDATA[ Hi<br />
I read this link :<br />
<a href="http://forums.mysql.com/read.php?116,431198,432706#msg-432706"  rel="nofollow">http://forums.mysql.com/read.php?116,431198,432706#msg-432706</a><br />
and from it I go this link :<br />
<a href="http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-mysql/"  rel="nofollow">http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-mysql/</a><br />
<br />
and did  same things that author said but when I type<br />
<br />
rails mysqlapp --database=mysql<br />
<br />
nothing happen but author said that in this step ruby connect to MySQL.<br />
If someone can , exactly explain me after that I go install rail and mysql , what should I do ?<br />
thanks]]></description>
            <dc:creator>amir ef</dc:creator>
            <category>Ruby</category>
            <pubDate>Sat, 03 Sep 2011 21:26:56 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,431198,431198#msg-431198</guid>
            <title>gem install mysql error on Windows7 (1 reply)</title>
            <link>http://forums.mysql.com/read.php?116,431198,431198#msg-431198</link>
            <description><![CDATA[ Hi.<br />
I'm trying to install mysql on my machine and when I type gem install mysql or even gem install mysql2 I got an error, check this image:<br />
<br />
<a href="http://d.pr/gpJl"  rel="nofollow">http://d.pr/gpJl</a><br />
Windows 7 32-bit<br />
<br />
How can I solve this problem?]]></description>
            <dc:creator>Hosam Adel</dc:creator>
            <category>Ruby</category>
            <pubDate>Thu, 01 Sep 2011 22:21:05 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,430066,430066#msg-430066</guid>
            <title>gem install mysql2 :: Error cannot find -lmysqlclient_r (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,430066,430066#msg-430066</link>
            <description><![CDATA[ I install rvm in Fedora 15. like listed in the post:<br />
<a href="https://plus.google.com/106336405206268952858/posts/g1URhoYF3qk"  rel="nofollow">https://plus.google.com/106336405206268952858/posts/g1URhoYF3qk</a><br />
<br />
Also like to use MySQL, but when I try to install the gem for mysql2: <br />
<br />
gem install mysql2<br />
<br />
Script started on Mon 08 Aug 2011 12:48:23 PM CDT<br />
?]0;myredhat@myfedora15:~/rails??[?1034h[myredhat@myfedora15 rails]$ su -?????[2Pll??clear?????df -h?????clear??[K??[K??[K??[K??[K?gem install mysql2<br />
<br />
Building native extensions. This could take a while...<br />
<br />
ERROR: Error installing mysql2:<br />
<br />
ERROR: Failed to build gem native extension.<br />
<br />
<br />
<br />
        /usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb<br />
<br />
checking for rb_thread_blocking_region()... yes<br />
<br />
checking for mysql.h... yes<br />
<br />
checking for errmsg.h... yes<br />
<br />
checking for mysqld_error.h... yes<br />
<br />
creating Makefile<br />
<br />
<br />
<br />
make<br />
<br />
gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -D_FILE_OFFSET_BITS=64 -I/usr/include/mysql -g -pipe -m32 -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -Wall -funroll-loops -o mysql2_ext.o -c mysql2_ext.c<br />
<br />
gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -D_FILE_OFFSET_BITS=64 -I/usr/include/mysql -g -pipe -m32 -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -Wall -funroll-loops -o client.o -c client.c<br />
<br />
gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -D_FILE_OFFSET_BITS=64 -I/usr/include/mysql -g -pipe -m32 -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -Wall -funroll-loops -o result.o -c result.c<br />
<br />
result.c: In function ‘rb_mysql_result_fetch_row’:<br />
<br />
result.c:253:31: warning: variable ‘tokens’ set but not used [-Wunused-but-set-variable]<br />
<br />
result.c:267:58: warning: variable ‘tokens’ set but not used [-Wunused-but-set-variable]<br />
<br />
result.c:310:33: warning: variable ‘tokens’ set but not used [-Wunused-but-set-variable]<br />
<br />
result.c: In function ‘rb_mysql_result_fetch_fields’:<br />
<br />
result.c:376:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br />
<br />
gcc -shared -o mysql2.so mysql2_ext.o client.o result.o -L. -L/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/lib -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -L/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -lruby -L/usr/lib -lmysqlclient_r -lpthread -lm -lrt -ldl -lpthread -lrt -ldl -lcrypt -lm -lc<br />
<br />
/usr/bin/ld: cannot find -lmysqlclient_r<br />
<br />
collect2: ld returned 1 exit status<br />
<br />
make: *** [mysql2.so] Error 1<br />
<br />
<br />
<br />
<br />
<br />
Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.6 for inspection.<br />
<br />
Results logged to /usr/local/rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.6/ext/mysql2/gem_make.out<br />
<br />
?]0;myredhat@myfedora15:~/rails?[myredhat@myfedora15 rails]$ rpm -qa |grep MySQL<br />
<br />
?[01;31m?[KMySQL?[m?[K-server-5.5.15-1.linux2.6.i386<br />
<br />
?[01;31m?[KMySQL?[m?[K-devel-5.5.15-1.linux2.6.i386<br />
<br />
?[01;31m?[KMySQL?[m?[K-shared-compat-5.5.15-1.linux2.6.i386<br />
<br />
?[01;31m?[KMySQL?[m?[K-client-5.5.15-1.linux2.6.i386<br />
<br />
?]0;myredhat@myfedora15:~/rails?[myredhat@myfedora15 rails]$ uname -a<br />
<br />
Linux myfedora15 2.6.38.8-32.fc15.i686 #1 SMP Mon Jun 13 20:01:50 UTC 2011 i686 i686 i386 GNU/Linux<br />
<br />
?]0;myredhat@myfedora15:~/rails?[myredhat@myfedora15 rails]$ exit<br />
<br />
exit<br />
<br />
<br />
Script done on Mon 08 Aug 2011 12:49:05 PM CDT<br />
<br />
I try to upgrade but nothing seems to work... I wonder if this is a ruby/gem issue or some missing library in the mysql client. !!!.<br />
<br />
THX in advance for the heads up.]]></description>
            <dc:creator>Bernardino Lopez</dc:creator>
            <category>Ruby</category>
            <pubDate>Tue, 09 Aug 2011 21:27:46 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,424449,424449#msg-424449</guid>
            <title>Ruby on Rails (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,424449,424449#msg-424449</link>
            <description><![CDATA[ Ruby on rails is a new technology, and easy to learn <br />
Learners use this tutorials it superb<br />
<br />
<a href="http://innoppl.com/ruby-on-rails/"  rel="nofollow">http://innoppl.com/ruby-on-rails/</a> download  &amp; try]]></description>
            <dc:creator>sreeni nivas</dc:creator>
            <category>Ruby</category>
            <pubDate>Thu, 23 Jun 2011 11:00:11 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,424448,424448#msg-424448</guid>
            <title>Ruby on Rails expert (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,424448,424448#msg-424448</link>
            <description><![CDATA[ Free tutorial about ruby on rail try this <a href="http://innoppl.com/ruby-on-rails/"  rel="nofollow">http://innoppl.com/ruby-on-rails/</a>]]></description>
            <dc:creator>sreeni nivas</dc:creator>
            <category>Ruby</category>
            <pubDate>Thu, 23 Jun 2011 10:58:28 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,407851,407851#msg-407851</guid>
            <title>initial password (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,407851,407851#msg-407851</link>
            <description><![CDATA[ I always wipe out my sql  data   for each  instalation<br />
using  5.5.8   I was never able to use  any password (patch seemed to fail )<br />
<br />
<br />
I need a simple  proper working procedure to set  the  initial configuration wizard <br />
password  it failed for the last 10 jears  or is mysql a piece of crapp ???]]></description>
            <dc:creator>dreuzel dreuzel</dc:creator>
            <category>Ruby</category>
            <pubDate>Tue, 15 Feb 2011 15:59:02 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,406135,406135#msg-406135</guid>
            <title>App issue running SSL and MySQL (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,406135,406135#msg-406135</link>
            <description><![CDATA[ Hello All -<br />
<br />
           This is my first post into this forum and  I'm hoping someone can help.  I currently have a RoR app that runs on Ubuntu with Apache, Passenger and Mysql. The issue is causing me to bang my head against the wall. Suffice to say however I don't know if this is a Apache/SSL issue or a Apache/MySQL issue or a RoR issue so any help is appreciated.<br />
<br />
<br />
  For all of our development, we have been running the<br />
app via port 80 and all has worked fine.  Now I need to implement SSL so<br />
I got a certificate from a CA and installed it without any problems.<br />
However when I bring up the application in a browser, the application<br />
doesn't seem like it connects to MySQL.  The page loads and I see the<br />
security lock but the menue (which is derived from MySQL) doesn't load.<br />
I have successfully made sure that the rails app can connect to MySQL<br />
via command line by running ActiveRecord::Base.connection via the<br />
console and it connects using the mysql socket.  The MySQL is running on<br />
the same server as the app so no outside connection is needed. If I<br />
change my VHost back to port 80, everything runs correctly and it<br />
connects to the db. I've looked into the logs for the app and notice<br />
that even though I connect using https:// the app logs show http:.  I<br />
know SSL is working correctly in Apache because I can put up a plain<br />
jane webiste using SSL and it comes up but when using this app<br />
connecting to MySQL and https I get errors in the app and menus don't load.<br />
<br />
<br />
<br />
<br />
<br />
<br />
&lt;virtualhost *:443&gt;<br />
  SSLEngine On<br />
  SSLCertificateFile /etc/apache2/ssl/domain.com.crt<br />
  SSLCertificateKeyFile /etc/apache2/ssl/domain.key<br />
<br />
  ServerAdmin admin@localhost<br />
  ServerName  test.domain.com<br />
  DocumentRoot /home/sysadmin/projects/App/public<br />
  &lt;directory /home/sysadmin/projects/App/public&gt;<br />
    Options FollowSymLinks<br />
    AllowOverride None<br />
    RAILSENV production<br />
  &lt;/directory&gt;<br />
<br />
  ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/<br />
  &lt;directory &quot;/usr/lib/cgi-bin&quot;&gt;<br />
    AllowOverride None<br />
    Options ExecCGI -MultiViews +SymLinksIfOwnerMatch<br />
    Order allow,deny<br />
    Allow from all<br />
  &lt;/directory&gt;<br />
<br />
  ErrorLog /var/log/apache2/error.log<br />
<br />
  # Possible values include: debug, info, notice, warn, error, crit,<br />
  # alert, emerg.<br />
LogLevel warn<br />
<br />
  CustomLog /var/log/apache2/access.log combined<br />
  ServerSignature On<br />
<br />
  Alias /doc/ &quot;/usr/share/doc/&quot;<br />
  &lt;directory &quot;/usr/share/doc/&quot;&gt;<br />
    Options Indexes MultiViews FollowSymLinks<br />
    AllowOverride None<br />
    Order deny,allow<br />
    Deny from all<br />
    Allow from 127.0.0.0/255.0.0.0 ::1/128<br />
  &lt;/directory&gt;<br />
<br />
&lt;/virtualhost]]></description>
            <dc:creator>Jason Milian</dc:creator>
            <category>Ruby</category>
            <pubDate>Thu, 03 Feb 2011 20:27:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,399054,399054#msg-399054</guid>
            <title>sequel gem and segfault - mysql gem line 343 (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,399054,399054#msg-399054</link>
            <description><![CDATA[ hi there,<br />
<br />
using 1.8.7 p302 via rubyinstaller<br />
<br />
I can connect to a remote MYSQL server fine via mysql - trouble is i'm converting a linux app to windows and I have sequel code embedded throughout my project.<br />
<br />
I have 1 script that handles the sql calls below is a sample of what the class initialization method does and the errors generated.<br />
<br />
anyone able to help? (prefer to use sequel gem to save LOTS of recoding/debugging).<br />
<br />
converting on WINXP virtual machine end OS is going to be W2K pro - win XP systems.<br />
<br />
Doesn't seem to matter where i have the line - get_all_acccodes.each{|c| puts c}<br />
it will segfault anyway.<br />
<br />
the version of LIBmysql.dll is one I got from <a href="http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll"  rel="nofollow">http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll</a><br />
that file is 1.484Kb large and i have another that is like 242Kb this one also segfaults too.<br />
<br />
<br />
<br />
sample code being used...<br />
<br />
require 'sequel'<br />
require 'logger'<br />
# require 'mysql'<br />
<br />
class Dopen<br />
    <br />
  def initialize(*arg)<br />
    @path = &quot;/logs&quot;<br />
    @log = Logger.new(&quot;#{@path}DB - info.log&quot;)<br />
    @log.level = Logger::DEBUG<br />
    <br />
    @log.debug('initialing the DB access!')<br />
    <br />
    if arg[0] == 'local'<br />
	  #was only used for test via my local server - i want to connect to the remote server only now!<br />
    else<br />
	puts 'in remote side'<br />
	  @db = Sequel.mysql(:host =&gt; 'remote.co.nz', :user =&gt; &quot;user&quot;, :password =&gt; &quot;p/word&quot;, :database =&gt; &quot;database&quot;, :logger =&gt; Logger.new( STDOUT )) <br />
	  <br />
	  # test.each{|r| puts r} &lt;&lt;&lt; 1st errors belong to this line - line 22<br />
<br />
	  get_all_acccodes.each{|c| puts c} &lt;&lt;&lt; 2nd errors belong to this line<br />
<br />
# this connection code works fine below!!!<br />
	  # @db = Mysql.new('remote.co.nz', &quot;user&quot;, &quot;p/word&quot;,'database') <br />
      # remote<br />
    end <br />
<br />
	rescue Sequel::Error<br />
      @log.debug(&quot;An error occurred\nError code: #{Sequel}\nError message: #{Sequel.to_s}&quot;)<br />
    ensure<br />
      @log.debug(&quot;DB closed!&quot;)<br />
      # @db.close if @db<br />
	<br />
  end<br />
<br />
  def get_all_acccodes    <br />
    @log.debug('getting all account codes')<br />
    @db[:cust_data].filter(:closed =&gt; 0, :contract =&gt; 0)  # 1 = true account is CLOSED, 0 means it's OPEN<br />
<br />
#line below works with mysql direct<br />
    # @db.query(&quot;select * from cust_data where closed = 0 and contract = 0&quot;)<br />
  end<br />
<br />
end<br />
<br />
a = Dopen.new 'remote' &lt;&lt; allows for quick switching when i was developing locally<br />
<br />
<br />
*** end of teh script file ****<br />
<br />
Now if I change the connect line from Sequel.mysql(...) to Sequel.mysql.connect(...) i get a reference to as per error 3 - No user or password for Dave @ localhost!!!<br />
<br />
I'm not conecting to a local host.<br />
<br />
I do have Mysql community installed but will need to remove it to gain disk space back, I only did this because originally i couldn't even connect to the remote Mysql server and I thought i might need it locally.<br />
<br />
any pointers on what I'm doing wrong?<br />
<br />
many thanks for any - all help.<br />
<br />
dave.<br />
<br />
<br />
1st errors for simple show version of server being run....<br />
<br />
C:\monitoring screen&gt;ruby -rubygems sequel1.rb<br />
in remote side<br />
I, [2010-12-14T22:54:15.335004 #2740]  INFO -- : (0.190273s) SET @@wait_timeout<br />
= 2147483<br />
I, [2010-12-14T22:54:15.535292 #2740]  INFO -- : (0.200288s) SET SQL_AUTO_IS_NUL<br />
L=0<br />
I, [2010-12-14T22:54:15.715552 #2740]  INFO -- : (0.180260s) SELECT VERSION()<br />
VERSION()5.1.52<br />
#&lt;Sequel::MySQL::Dataset:0x2d6aec0&gt;<br />
#&lt;Sequel::MySQL::Dataset:0x2d6a278&gt;<br />
sequel1.rb:22:in `initialize': undefined method `each' for nil:NilClass (NoMetho<br />
dError)<br />
        from sequel1.rb:159:in `new'<br />
        from sequel1.rb:159<br />
<br />
C:\monitoring screen&gt;<br />
<br />
<br />
2nd error <br />
<br />
C:\monitoring screen&gt;ruby -rubygems sequel1.rb<br />
in remote side<br />
I, [2010-12-14T22:55:11.310100 #2776]  INFO -- : (0.190273s) SET @@wait_timeout<br />
= 2147483<br />
I, [2010-12-14T22:55:11.500374 #2776]  INFO -- : (0.190274s) SET SQL_AUTO_IS_NUL<br />
L=0<br />
I, [2010-12-14T22:55:11.710676 #2776]  INFO -- : (0.210302s) SELECT * FROM `cust<br />
_data` WHERE ((`closed` = 0) AND (`contract` = 0))<br />
C:/Ruby187/lib/ruby/gems/1.8/gems/sequel-3.18.0/lib/sequel/adapters/mysql.rb:343<br />
: [BUG] Segmentation fault<br />
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]<br />
<br />
<br />
This application has requested the Runtime to terminate it in an unusual way.<br />
Please contact the application's support team for more information.<br />
<br />
C:\monitoring screen&gt;<br />
<br />
<br />
3rd error output...<br />
<br />
C:\monitoring screen&gt;ruby -rubygems sequel1.rb<br />
in remote side<br />
C:/Ruby187/lib/ruby/gems/1.8/gems/sequel-3.18.0/lib/sequel/adapters/mysql.rb:112<br />
:in `real_connect': Access denied for user 'dave'@'localhost' (using password: N<br />
O) (Mysql::Error)<br />
        from C:/Ruby187/lib/ruby/gems/1.8/gems/sequel-3.18.0/lib/sequel/adapters<br />
/mysql.rb:112:in `connect'<br />
        from sequel1.rb:20:in `initialize'<br />
        from sequel1.rb:160:in `new'<br />
        from sequel1.rb:160<br />
<br />
C:\monitoring screen&gt;]]></description>
            <dc:creator>dave lilley</dc:creator>
            <category>Ruby</category>
            <pubDate>Tue, 14 Dec 2010 09:55:39 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,391622,391622#msg-391622</guid>
            <title>Scripting the cutover from slave to master and back? (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,391622,391622#msg-391622</link>
            <description><![CDATA[ We have an internal process by which we replicate our production data to a remote location (effectively a mirror of our production content).   From time to time, we will change that slave to a master and test our code at that location, with the old /var/lib/mysql directory backed up first.<br />
<br />
After we're done, the my.cnf is switched back along with the backup of /var/lib/mysql and it resumes replication where it left off.<br />
<br />
This method works, but it's manually tedious.   I know we can (and probably should) be using another method, but this is what we have to work with now.<br />
<br />
My question is if there is some clever way through the Ruby scripting and API to facilitate this.   I guess the simple answer would be to write a dumb shell script that just does the manual tasks and then report the result so that non-technical staff can trigger the change.   It still doesn't feel right.... and I wanted some objective feedback.<br />
<br />
We already use Ruby with Puppet for management and so it makes sense that we might consider this route.<br />
<br />
<br />
Thanks!]]></description>
            <dc:creator>Forrest Aldrich</dc:creator>
            <category>Ruby</category>
            <pubDate>Mon, 25 Oct 2010 20:40:22 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,381125,381125#msg-381125</guid>
            <title>libssl 1.0.0a_0 and mysql gem (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,381125,381125#msg-381125</link>
            <description><![CDATA[ Hallo,<br />
<br />
im use mysql gem version (2.8.1) and openssl @1.0.0a_0 (installed from MacPorts).<br />
<br />
when im use mysql gem in my projects i have this error:<br />
<br />
dyld: NSLinkModule() error<br />
dyld: Library not loaded: /opt/local/lib/libssl.0.9.8.dylib<br />
  Referenced from: /Users/pisz/.multiruby/install/1.8.6-p114/lib/ruby/gems/1.8/gems/mysql-2.8.1/lib/mysql_api.bundle<br />
  Reason: image not found<br />
Trace/BPT trap<br />
<br />
because i have 1.0.0 version installed.<br />
<br />
My svn and ssh works with the 1.0.0 version and i have to switch between this version of openssl to work with mysql<br />
and ssh/svn.<br />
<br />
Greets,<br />
Piotr Szal]]></description>
            <dc:creator>Piotr Szal</dc:creator>
            <category>Ruby</category>
            <pubDate>Tue, 17 Aug 2010 07:43:09 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,377917,377917#msg-377917</guid>
            <title>mysql ruby gems installation (1 reply)</title>
            <link>http://forums.mysql.com/read.php?116,377917,377917#msg-377917</link>
            <description><![CDATA[ Alright I've seen some other peoples problems with installing the mysql gem but I had some other questions about it as well.<br />
<br />
I'm on Mac OS X 10.6.4 Snow Leopard<br />
First off, I am using mysql Ver 14.14 Distrib 5.1.49, for apple-darwin10.3.0 (i386) using readline 5.1<br />
<br />
It's the 32 bit version.<br />
<br />
I tried installing the gem with a multitude of commands. I tried the directory option, specifying the directory, I tried the --with-mysql-config=' option, specifying the correct mysql_config path, as well as the ARCHFLAGS command. None of them work. I also tried installing the 2.8.1 mysql gem version, but I think that's 64 bit and I have mysql 32 bit installed? Installing the 2.8.1 version works and it installs, but when I cd to my app, change my database.yml file, and type rake db:migrate I get this error:<br />
<br />
rake db:migrate --trace<br />
(in /Users/benreinhart/Rails/rails_app)<br />
** Invoke db:migrate (first_time)<br />
** Invoke environment (first_time)<br />
** Execute environment<br />
** Execute db:migrate<br />
rake aborted!<br />
uninitialized constant MysqlCompat::MysqlRes<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in `load_missing_constant'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:9:in `define_all_hashes_method!'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:68:in `mysql_connection'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `send'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:435:in `initialize'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:400:in `new'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:400:in `up'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:383:in `migrate'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/databases.rake:116<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'<br />
/Users/benreinhart/.gem/ruby/1.8/gems/rake-0.8.7/bin/rake:31<br />
/usr/bin/rake:19:in `load'<br />
/usr/bin/rake:19<br />
<br />
<br />
<br />
I read in a bunch of places that installing the older version (2.7) works. So I did this:<br />
<br />
bash-3.2# gem install mysql -v 2.7 -- --with-mysql-config=/usr/local/mysql/bin/mysql_config<br />
Building native extensions.  This could take a while...<br />
Successfully installed mysql-2.7<br />
1 gem installed<br />
Installing ri documentation for mysql-2.7...<br />
Installing RDoc documentation for mysql-2.7...<br />
bash-3.2# <br />
<br />
Then I cd to my app, (which has database.yml configured properly) and typed rake db:migrate and now I get this error:<br />
<br />
rake db:migrate<br />
(in /Users/benreinhart/Rails/rails_app)<br />
dyld: lazy symbol binding failed: Symbol not found: _mysql_init<br />
  Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/mysql.bundle<br />
  Expected in: flat namespace<br />
<br />
dyld: Symbol not found: _mysql_init<br />
  Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/mysql.bundle<br />
  Expected in: flat namespace<br />
<br />
Trace/BPT trap<br />
<br />
<br />
Anyone know? Please help!<br />
<br />
Thank you so much...]]></description>
            <dc:creator>ben reinhart</dc:creator>
            <category>Ruby</category>
            <pubDate>Mon, 26 Jul 2010 20:00:26 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,377788,377788#msg-377788</guid>
            <title>Convert ruby file to c#.net - I will pay for it (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,377788,377788#msg-377788</link>
            <description><![CDATA[ Convert simple ruby file to c#.net.<br />
<br />
I will pay for it]]></description>
            <dc:creator>Rupendra Bensh</dc:creator>
            <category>Ruby</category>
            <pubDate>Sun, 25 Jul 2010 19:58:40 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,376149,376149#msg-376149</guid>
            <title>undefined method `init' for Mysql:Class error (1 reply)</title>
            <link>http://forums.mysql.com/read.php?116,376149,376149#msg-376149</link>
            <description><![CDATA[ Hi, <br />
<br />
I'm trying to set up just a basic blog on my webhost so I can just get everything working before I do more but I keep getting this error when I go add tables to the database via command line: <br />
<br />
<br />
Ankit-Desais-MacBook-Pro:mogo ankit$ rake db:migrate --trace<br />
(in /Users/ankit/Sites/mogo)<br />
** Invoke db:migrate (first_time)<br />
** Invoke environment (first_time)<br />
** Execute environment<br />
** Execute db:migrate<br />
rake aborted!<br />
undefined method `init' for Mysql:Class<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/mysql_adapter.rb:30:in `mysql_connection'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:226:in `send'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:226:in `new_connection'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:248:in `checkout_new_connection'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:190:in `checkout'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:186:in `loop'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:186:in `checkout'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:185:in `checkout'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:99:in `connection'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:330:in `retrieve_connection'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_specification.rb:103:in `retrieve_connection'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_specification.rb:95:in `connection'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/migration.rb:459:in `initialize'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/migration.rb:406:in `new'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/migration.rb:406:in `up'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/migration.rb:388:in `migrate'<br />
/Users/ankit/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/railties/databases.rake:140<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'<br />
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31<br />
/usr/local/bin/rake:19:in `load'<br />
/usr/local/bin/rake:19<br />
<br />
<br />
Anyone faced this issue before? There was another thread about this but no one answered it and it's been closed. <br />
<br />
Thanks in advance,<br />
Ankit]]></description>
            <dc:creator>Ankit Desai</dc:creator>
            <category>Ruby</category>
            <pubDate>Fri, 30 Jul 2010 13:00:28 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,374171,374171#msg-374171</guid>
            <title>Merge al Databases from 2 into one mysql-DBMS (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,374171,374171#msg-374171</link>
            <description><![CDATA[ I have Ruby on Rails and in Fact mysql 2 times installed <br />
on my Windows XP. <br />
Now Rails do not work witout trouble and MySql don't work right, too. <br />
What ist my wish: <br />
I want, to merge the 2 installations of Rails and both installations <br />
of MySql, because I don't want to loose my Projekts. <br />
After that, I want to install Hobo and I want to continue with Hobo. <br />
The first Rails was instrails and the second Rails-installation was <br />
bitnami. both I have extended with an own mysql-installation on <br />
different drives, because after the bitnami-installation, the <br />
aplikations won't run with mysql. <br />
I know, that it was addlebrained, but now it is the status quo. <br />
But, which steps I have to do for save my databases into one and path without loosing my work? which files I must move to other directorys and which files I have to edit and write in the new pathes for the correct mysql-instance? <br />
May I have to edit the regedit, too?<br />
Thanks <br />
Torsten]]></description>
            <dc:creator>T. Schulz</dc:creator>
            <category>Ruby</category>
            <pubDate>Wed, 30 Jun 2010 11:18:35 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,374119,374119#msg-374119</guid>
            <title>mysql.so isn't found (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,374119,374119#msg-374119</link>
            <description><![CDATA[ I am trying to use the taps gem to push my database to Heroku, however, whenever I do the command:<br />
<br />
$heroku db:push<br />
<br />
I get the following error:<br />
<br />
Failed to connect to database:<br />
  Sequel::AdapterNotFound -&gt; LoadError: require 'mysql' did not define Mysql::CLIENT_MULTI_RESULTS!<br />
  You are probably using the pure ruby mysql.rb driver,<br />
  which Sequel does not support. You need to install<br />
  the C based adapter, and make sure that the mysql.so<br />
  file is loaded instead of the mysql.rb file.<br />
<br />
How do I fix this?  I am unable to find this mysql.so driver.]]></description>
            <dc:creator>Z E</dc:creator>
            <category>Ruby</category>
            <pubDate>Wed, 30 Jun 2010 04:24:41 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,372251,372251#msg-372251</guid>
            <title>mysql installation errors (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,372251,372251#msg-372251</link>
            <description><![CDATA[ Hey I am a newbie to mysql and ruby on rails frame work. I have installed mysql 5.1.47. it worked properly. But when I wanted to use it in rails frame work, by running rails command rake db:migrate,after setting up the database, I am not able to execute it. The error I got was <br />
rake aborted!<br />
Access denied for user 'root'@'localhost' (using password : NO)<br />
<br />
But I had set the password while installing and accessed mysql database without connecting to rails.<br />
<br />
And also, after running the rails command &quot;rake db:migrate&quot;, I am not able to access even the mysql database alone. When i attempted to run mysql from command prompt, I was not able to get access. The error I got was<br />
ERROR 1045 (28000) : Access denied for user 'ODBC'@'localhost' (using password : NO)<br />
I tried starting mysql with mysql -u root -p<br />
then I got the prompt to enter password<br />
after entering the password, i got the error<br />
&quot;Access denied for user 'ODBC'@'localhost' (using password : Yes)&quot;<br />
<br />
<br />
I dont know y this error is coming still, after the password is been set.<br />
Please help me out. I am so confused and no idea of fixing this error. And moreover I have to rush in getting rails frame work with mysql installed, as my project due is coming soon.<br />
Any help is appreciated.<br />
<br />
<br />
Thanks in Advance !!]]></description>
            <dc:creator>Nivedita Chamarthy</dc:creator>
            <category>Ruby</category>
            <pubDate>Wed, 16 Jun 2010 21:59:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,371444,371444#msg-371444</guid>
            <title>Ruby APIs (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,371444,371444#msg-371444</link>
            <description><![CDATA[ Hi, Sorry if this is a wrong forum to post this. I'm new with MySql.<br />
<br />
I've a simple question.<br />
I have mysql version: 5.1.47-community<br />
Ruby version  1.8.6-p398<br />
<br />
Both on Windows XP. Our environment does not permit linux og cygwin (I'm used to work on these platfoms).<br />
<br />
I've applied mysql gem with gem install mysql.<br />
<br />
Do I need to add something more to ruby or mysql to do siple selects and insert to the database from ruby.<br />
<br />
I've tried insert and get 0 (number zero) into the table, and ruby have problems with :<br />
<br />
get '/' do <br />
my = Mysql.new('localhost', 'root', 'sadmin', 'mysql')<br />
st = my.prepare(&quot;SELECT VERSION()&quot;)<br />
st.execute<br />
# Get the result set<br />
result= st.fetch<br />
 <br />
# Print out the result<br />
puts result.to_s<br />
st.close<br />
<br />
  haml :index<br />
end<br />
<br />
can anyone help me? Please. With only Windows I have problems with solving this. As far as I know all API's are allready installed with the default installation of ruby and mysql as described above. Just my code that is bad :-)<br />
<br />
Thanks!<br />
<br />
Best regards<br />
Gjermund (DBA - Oracle)]]></description>
            <dc:creator>Gjermund Lunder</dc:creator>
            <category>Ruby</category>
            <pubDate>Thu, 10 Jun 2010 15:28:41 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?116,368892,368892#msg-368892</guid>
            <title>avg () and Joins in mysql (no replies)</title>
            <link>http://forums.mysql.com/read.php?116,368892,368892#msg-368892</link>
            <description><![CDATA[ hi,<br />
<br />
i am using following query to fetch data from multiple tables now i want to get the average of fetched records.<br />
like i want to get the average marks of IRFAN.<br />
<br />
CAN ANYONE PLS TELL ME HOW TO USE AVG() IN THIS QUERY<br />
<br />
<br />
<br />
<br />
$QUERY = &quot;SELECT subject,FirstName,marks FROM subject,all_members,marks WHERE all_members.mid = marks.mid and 	subject.subjectid = marks.subjectid and marks&gt;=40 and all_members.FirstName='irfan'&quot;;<br />
 	$rs = mysql_query($QUERY);]]></description>
            <dc:creator>Erfan anjum</dc:creator>
            <category>Ruby</category>
            <pubDate>Mon, 24 May 2010 18:22:30 +0000</pubDate>
        </item>
    </channel>
</rss>
