<?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>https://forums.mysql.com/list.php?116</link>
        <lastBuildDate>Mon, 18 May 2026 20:56:37 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forums.mysql.com/read.php?116,684821,684821#msg-684821</guid>
            <title>MySql connection error localhost 10061 (2 replies)</title>
            <link>https://forums.mysql.com/read.php?116,684821,684821#msg-684821</link>
            <description><![CDATA[ Hello.<br />
I cant connet to localhost:3000 I get the following error.<br />
<br />
Mysql2::Error::ConnectionError<br />
<br />
Can&#039;t connect to MySQL server on &#039;localhost&#039; (10061)<br />
<br />
<br />
 conn_attrs = parse_connect_attrs(opts[:connect_attrs])<br />
<br />
      connect user, pass, host, port, database, socket, flags, conn_attrs<br />
    end<br />
<br />
    def parse_ssl_mode(mode)<br />
<br />
I&#039;m creating a ruby on rails application. When I create the app and create a dummy page it works, I can also connect to the your on rails page. But when I close it and open it again I get this message.<br />
<br />
Can you help.<br />
<br />
Peter.]]></description>
            <dc:creator>Peter Mooney</dc:creator>
            <category>Ruby</category>
            <pubDate>Tue, 06 Oct 2020 15:27:30 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?116,663874,663874#msg-663874</guid>
            <title>Permission denied (no replies)</title>
            <link>https://forums.mysql.com/read.php?116,663874,663874#msg-663874</link>
            <description><![CDATA[ Fetching mysql2 0.4.10<br />
Installing mysql2 0.4.10 with native extensions<br />
Errno::EACCES: Permission denied @ rb_sysopen -<br />
/Users/escorpion/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/mysql2-0.4.10/CHANGELOG.md<br />
An error occurred while installing mysql2 (0.4.10), and Bundler<br />
cannot continue.<br />
Make sure that `gem install mysql2 -v &#039;0.4.10&#039;` succeeds before bundling.<br />
<br />
In Gemfile:<br />
  mysql2<br />
         run  bundle exec spring binstub --all<br />
rbenv: spring: command not found<br />
<br />
The `spring&#039; command exists in these Ruby versions:<br />
  2.4.1<br />
  2.4.3]]></description>
            <dc:creator>Sadrac Torres</dc:creator>
            <category>Ruby</category>
            <pubDate>Thu, 25 Jan 2018 05:17:27 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?116,657255,657255#msg-657255</guid>
            <title>MySQL Evolution - From 5.6 to 8.0 -- plus Ruby on Rails (no replies)</title>
            <link>https://forums.mysql.com/read.php?116,657255,657255#msg-657255</link>
            <description><![CDATA[ MySQL Evolution - From 5.6 to 8.0 -- plus Ruby on Rails<br />
<a href="https://drivy.engineering/mysql-evolution/"  rel="nofollow">https://drivy.engineering/mysql-evolution/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Ruby</category>
            <pubDate>Fri, 05 May 2017 16:46:43 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?116,638962,638962#msg-638962</guid>
            <title>ruby to Mysql Cluster/multi-master (no replies)</title>
            <link>https://forums.mysql.com/read.php?116,638962,638962#msg-638962</link>
            <description><![CDATA[ Still looking for a gem that can connect to 2 masters, i.e. the sql access nodes in Mysql Cluster.<br />
Right now the only options are: use jruby with connector/j or install haproxy+keepalived.<br />
Is there simply no interest in ruby to have enterprise features like this?<br />
This seems like a pretty big one if you want to hang out at the grown-ups table.<br />
<br />
-Tony]]></description>
            <dc:creator>Lucas Jackson</dc:creator>
            <category>Ruby</category>
            <pubDate>Mon, 30 Nov 2015 18:37:51 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?116,635345,635345#msg-635345</guid>
            <title>Ruby with Mysql (1 reply)</title>
            <link>https://forums.mysql.com/read.php?116,635345,635345#msg-635345</link>
            <description><![CDATA[ 1,What are the software needed for connecting RUBY with MYSQL?.<br />
<br />
I installed ruby.<br />
<br />
2,And steps to connect ruby with mysql for insertion and updation.<br />
<br />
Thanks in Advance.]]></description>
            <dc:creator>Ram jaganathan</dc:creator>
            <category>Ruby</category>
            <pubDate>Sat, 26 Sep 2015 17:22:22 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?116,632519,632519#msg-632519</guid>
            <title>How to manage ruby code (no replies)</title>
            <link>https://forums.mysql.com/read.php?116,632519,632519#msg-632519</link>
            <description><![CDATA[ How to manage ruby code]]></description>
            <dc:creator>BZ Testv</dc:creator>
            <category>Ruby</category>
            <pubDate>Sat, 04 Jul 2015 15:13:16 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?116,624638,624638#msg-624638</guid>
            <title>ruby app and MySQL server has gone away error (no replies)</title>
            <link>https://forums.mysql.com/read.php?116,624638,624638#msg-624638</link>
            <description><![CDATA[ Hi there,<br />
 <br />
I&#039;m running a ruby - multi-threaded application that collects data over the internet and then connects to MySQL to do a simple insert.<br />
 <br />
insert into churches.us values(&#039;&#039;,&#039;NULL&#039;,&#039;XYZ Christian Church&#039;,&#039;43.268158&#039;,&#039;-99.731361&#039;,&#039;0011111111111&#039;,&#039;200 N XYZ Ave&#039;,&#039;Shmack City&#039;,&#039;Shmack%2CCity&#039;,&#039;IA&#039;,NOW())<br />
<br />
Everything works great until there is around 2600 records in the database.<br />
Then some (not all) of the attempts to insert end up in the error: &quot;MySQL server has gone away&quot;. The query that fails looks normal and works if I run them manually. Also no slow queries are being logged to the file configured in my.cnf. No errors appear in mysql.err <br />
<br />
I can&#039;t figure out why the error.<br />
 <br />
There is plenty of memory on the server:<br />
<br />
free -lmh<br />
            total       used       free     shared    buffers     cached<br />
Mem:          8.8G       1.1G       7.7G       6.4M        94M       162M<br />
Low:          8.8G       1.1G       7.7G<br />
High:           0B         0B         0B<br />
-/+ buffers/cache:       863M       7.9G<br />
Swap:         2.0G         0B       2.0G<br />
<br />
<br />
select count(*) from churches.us<br />
<br />
+----------+<br />
| count(*) |<br />
+----------+<br />
|     2527 |<br />
+----------+<br />
<br />
root@fd001:~/test# mysql -u root -p&#039;bleeeeep&#039; -e &quot;show variables like &#039;%wait%&#039;;show variables like &#039;%errors%&#039;&quot;<br />
+---------------------------------------------------+----------+<br />
| Variable_name                                     | Value    |<br />
+---------------------------------------------------+----------+<br />
| innodb_lock_wait_timeout                          | 3600     |<br />
| innodb_spin_wait_delay                            | 6        |<br />
| lock_wait_timeout                                 | 31536000 |<br />
| performance_schema_events_waits_history_long_size | 10000    |<br />
| performance_schema_events_waits_history_size      | 10       |<br />
| wait_timeout                                      | 28800    |<br />
+---------------------------------------------------+----------+<br />
+--------------------+---------+<br />
| Variable_name      | Value   |<br />
+--------------------+---------+<br />
| max_connect_errors | 1000000 |<br />
| slave_skip_errors  | OFF     |<br />
+--------------------+---------+<br />
<br />
root@fd001:~/test# mysql -u root -p&#039;bleeep&#039; -e &quot;show status like &#039;%conn%&#039;; show status like &#039;%thread%&#039;&quot;<br />
+--------------------------+-------+<br />
| Variable_name            | Value |<br />
+--------------------------+-------+<br />
| Aborted_connects         | 0     |<br />
| Connections              | 3105  |<br />
| Max_used_connections     | 25    |<br />
| Ssl_client_connects      | 0     |<br />
| Ssl_connect_renegotiates | 0     |<br />
| Ssl_finished_connects    | 0     |<br />
| Threads_connected        | 8     |<br />
+--------------------------+-------+<br />
+------------------------------------------+-------+<br />
| Variable_name                            | Value |<br />
+------------------------------------------+-------+<br />
| Delayed_insert_threads                   | 0     |<br />
| Performance_schema_thread_classes_lost   | 0     |<br />
| Performance_schema_thread_instances_lost | 0     |<br />
| Slow_launch_threads                      | 0     |<br />
| Threads_cached                           | 8     |<br />
| Threads_connected                        | 8     |<br />
| Threads_created                          | 83    |<br />
| Threads_running                          | 2     |<br />
+------------------------------------------+-------+<br />
<br />
<br />
key_buffer              = 128M<br />
max_allowed_packet      = 256M<br />
max_connect_errors      = 1000000<br />
thread_stack            = 192K<br />
thread_cache_size       = 16<br />
max_connections        = 1024<br />
table_cache            = 256<br />
thread_concurrency     = 1024<br />
<br />
root@fd001:~/test# cat /proc/version<br />
Linux version 3.13.0-40-generic (buildd@comet) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #69-Ubuntu SMP Thu Nov 13 17:53:56 UTC 2014<br />
<br />
root@fd001:~/test# ruby -v<br />
ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-linux]]]></description>
            <dc:creator>Piotr Kirklewski</dc:creator>
            <category>Ruby</category>
            <pubDate>Wed, 03 Dec 2014 19:36:23 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?116,621563,621563#msg-621563</guid>
            <title>To MySQL or NoSQL (no replies)</title>
            <link>https://forums.mysql.com/read.php?116,621563,621563#msg-621563</link>
            <description><![CDATA[ Hello,<br />
<br />
I&#039;m torn in between choosing to use MySQL &amp; NoSQL for a crowd sourcing platform to be developed using Ruby on Rails. <br />
<br />
Will value you guys input on this.]]></description>
            <dc:creator>Tabish Naeem</dc:creator>
            <category>Ruby</category>
            <pubDate>Sun, 05 Oct 2014 11:42:09 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?116,614829,614829#msg-614829</guid>
            <title>A complicated query? (no replies)</title>
            <link>https://forums.mysql.com/read.php?116,614829,614829#msg-614829</link>
            <description><![CDATA[ Hi all, I&#039;m really new to programming, so appologise in advance if any of my questions seems silly. :) I&#039;m playing with an webapp for internal use, however having trouble completing a query. below are the table structure.<br />
<br />
Children<br />
ID, LID, Network_id, status (active or archived), longitude, latitude<br />
<br />
Visit<br />
ID, date<br />
<br />
Visit_histories<br />
ID, visit_id, child_id, cancelled<br />
<br />
Each children get visited once a month, and I want to have a google map that can display the locations for all active children whose last visit is xx days ago. (e.g. 30 days ago)<br />
<br />
I&#039;m thinking creating a view that returns the followings:<br />
child_id, network_id, last_visit_days, longitude, latitude<br />
<br />
Other notes:<br />
- Some children who just joined the program, so there wouldn&#039;t be a record in the visit_histories table. the returned value in this case can be nil.<br />
<br />
- Some booked visits are cancelled because of one reason or another.<br />
<br />
- the last_visit_days in the view is a calculated field using the last_visit_day in the visit_histories (only the ones that havnt been cancelled)<br />
<br />
<br />
I have this query<br />
Select vh.child_id, max(v.date) from visits v, visit_histories vh where v.id = vh.visit_id and cancelled &lt;&gt; 1 group by vh.child_id<br />
<br />
which displays the last visit date for each child in the visit histories table.  But this does not display new child who just joined.  I then need to combine this result with the children table to get all the children, however I cant get the outter jion query to work properly.<br />
<br />
Many thanks in advance.]]></description>
            <dc:creator>Grace Xue</dc:creator>
            <category>Ruby</category>
            <pubDate>Wed, 28 May 2014 11:17:46 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?116,587043,587043#msg-587043</guid>
            <title>Why does my checkout button not work all of a sudden? (no replies)</title>
            <link>https://forums.mysql.com/read.php?116,587043,587043#msg-587043</link>
            <description><![CDATA[ Have an app that I have been developing, that uses to work up until some recent changes. I ran a bundle update, and a bunch of gems updated. Since then my checkout process..!!<br />
<br />
<a href="http://www.techiestown.com/blog/ruby-on-rails-gain-an-insight-before-you-opt-for-the-service/"  rel="nofollow">ROR</a>]]></description>
            <dc:creator>Roland Rock</dc:creator>
            <category>Ruby</category>
            <pubDate>Wed, 22 May 2013 07:32:17 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?116,585585,585585#msg-585585</guid>
            <title>Using rails comparison operator in dev/production (no replies)</title>
            <link>https://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>https://forums.mysql.com/read.php?116,564897,564897#msg-564897</guid>
            <title>differences between prepare(stmt) and query(stmt) results (no replies)</title>
            <link>https://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 = &#039;SELECT meetings.meetings_key, meetings.meetings_date, meetings.title &#039; +<br />
&#039;FROM meetings, meeting_types &#039; +<br />
&#039;WHERE meetings.type_key = meeting_types.meeting_types_key &#039; +<br />
&quot;and meeting_types.meeting_type = ? &quot; +<br />
&quot; AND year(meetings.meetings_date) &gt;= ? &quot; +<br />
&#039;ORDER BY meetings.meetings_key&#039;<br />
<br />
sth = @dbh.prepare(query)<br />
type = &#039;Board&#039;<br />
year = &#039;2012&#039;<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 = &#039;SELECT meetings.meetings_key, meetings.meetings_date, meetings.title &#039; +<br />
&#039;FROM meetings, meeting_types &#039; +<br />
&#039;WHERE meetings.type_key = meeting_types.meeting_types_key &#039; +<br />
&quot;and meeting_types.meeting_type = \&#039;Board\&#039; &quot; +<br />
&quot; AND year(meetings.meetings_date) &gt;= \&#039;2012\&#039; &quot; +<br />
&#039;ORDER BY meetings.meetings_key&#039;<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>https://forums.mysql.com/read.php?116,558702,558702#msg-558702</guid>
            <title>Google imap error (no replies)</title>
            <link>https://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&#039;t open stream {imap.gmail.com:993/imap/ssl}INBOX<br />
<br />
I have used alternate imap&#039;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>https://forums.mysql.com/read.php?116,519642,519642#msg-519642</guid>
            <title>Error with MySQL and Rails 3.1.0 (no replies)</title>
            <link>https://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 &#039;0.2.17&#039; 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>https://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>https://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>https://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>https://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>https://forums.mysql.com/read.php?116,510966,510966#msg-510966</guid>
            <title>Mysql connection with rails (no replies)</title>
            <link>https://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&#039;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>https://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>https://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[&#039;length&#039;] 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>https://forums.mysql.com/read.php?116,505585,505585#msg-505585</guid>
            <title>Xml Problem (no replies)</title>
            <link>https://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>https://forums.mysql.com/read.php?116,494212,494212#msg-494212</guid>
            <title>Launching Server for Rails (no replies)</title>
            <link>https://forums.mysql.com/read.php?116,494212,494212#msg-494212</link>
            <description><![CDATA[ I have seen some people have the same problem, but haven&#039;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>https://forums.mysql.com/read.php?116,490857,490857#msg-490857</guid>
            <title>RoR not pulling data from table (no replies)</title>
            <link>https://forums.mysql.com/read.php?116,490857,490857#msg-490857</link>
            <description><![CDATA[ hey i&#039;m new to RoR with mysql and i&#039;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&#039;t displaying. i know it&#039;s not an issue with configuration as the table name shows up, just not the contents within it. i&#039;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>https://forums.mysql.com/read.php?116,484307,484307#msg-484307</guid>
            <title>ERROR 2002 (HY000): Can&#039;t connect to local MySQL server through socket &#039;/tmp/mysql.sock&#039; (2) (no replies)</title>
            <link>https://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&#039;t connect to local MySQL server through socket &#039;/tmp/mysql.sock&#039; (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>https://forums.mysql.com/read.php?116,432934,432934#msg-432934</guid>
            <title>Connecting MySQL to Ruby problem (no replies)</title>
            <link>https://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>https://forums.mysql.com/read.php?116,431198,431198#msg-431198</guid>
            <title>gem install mysql error on Windows7 (1 reply)</title>
            <link>https://forums.mysql.com/read.php?116,431198,431198#msg-431198</link>
            <description><![CDATA[ Hi.<br />
I&#039;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>https://forums.mysql.com/read.php?116,430066,430066#msg-430066</guid>
            <title>gem install mysql2 :: Error cannot find -lmysqlclient_r (no replies)</title>
            <link>https://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>https://forums.mysql.com/read.php?116,424449,424449#msg-424449</guid>
            <title>Ruby on Rails (no replies)</title>
            <link>https://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>https://forums.mysql.com/read.php?116,424448,424448#msg-424448</guid>
            <title>Ruby on Rails expert (no replies)</title>
            <link>https://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>https://forums.mysql.com/read.php?116,407851,407851#msg-407851</guid>
            <title>initial password (no replies)</title>
            <link>https://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>https://forums.mysql.com/read.php?116,406135,406135#msg-406135</guid>
            <title>App issue running SSL and MySQL (no replies)</title>
            <link>https://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&#039;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&#039;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&#039;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&#039;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&#039;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&#039;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>https://forums.mysql.com/read.php?116,399054,399054#msg-399054</guid>
            <title>sequel gem and segfault - mysql gem line 343 (no replies)</title>
            <link>https://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&#039;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&#039;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 &#039;sequel&#039;<br />
require &#039;logger&#039;<br />
# require &#039;mysql&#039;<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(&#039;initialing the DB access!&#039;)<br />
    <br />
    if arg[0] == &#039;local&#039;<br />
	  #was only used for test via my local server - i want to connect to the remote server only now!<br />
    else<br />
	puts &#039;in remote side&#039;<br />
	  @db = Sequel.mysql(:host =&gt; &#039;remote.co.nz&#039;, :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(&#039;remote.co.nz&#039;, &quot;user&quot;, &quot;p/word&quot;,&#039;database&#039;) <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(&#039;getting all account codes&#039;)<br />
    @db[:cust_data].filter(:closed =&gt; 0, :contract =&gt; 0)  # 1 = true account is CLOSED, 0 means it&#039;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 &#039;remote&#039; &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&#039;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&#039;t even connect to the remote Mysql server and I thought i might need it locally.<br />
<br />
any pointers on what I&#039;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&#039;: undefined method `each&#039; for nil:NilClass (NoMetho<br />
dError)<br />
        from sequel1.rb:159:in `new&#039;<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&#039;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&#039;: Access denied for user &#039;dave&#039;@&#039;localhost&#039; (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&#039;<br />
        from sequel1.rb:20:in `initialize&#039;<br />
        from sequel1.rb:160:in `new&#039;<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>
    </channel>
</rss>
