Tagged Questions
63
votes
22answers
62k views
Rails, MySQL and Snow Leopard
I upgraded to Snow Leopard using the disc we got at WWDC.
Trying to run some of my rails apps now complains about sql
(in /Users/coneybeare/Projects/Ambiance/ambiance-server)
!!! The bundled ...
11
votes
5answers
9k views
“193: %1 is not a valid Win32 application” bug with a new Rails Application
I have a new rails application which I have created under Windows 7 by going into a directory and typing "rails newapp". The creation went fine, and when I access the root page, all is well. However, ...
11
votes
13answers
23k views
How to delete duplicate records in mysql database?
What's the best way to delete duplicate records in a mysql database using rails or mysql queries?
22
votes
8answers
23k views
Ruby gem mysql2 install failing
When I try to install the mysql2 gem, it fails with no apparent errors. Does anyone know what to do to work around this so mysql2 installs? I am installing this on OS X.
...
5
votes
3answers
6k views
undefined method `eq' for nil:NilClass with rails 3 and ruby enterprise on ubuntu hardy
I am not sure what causes this error but since I came across this issue in passenger and now in the console as well I am thinking maybe the mysql driver is the problem?
Everything works as expected on ...
10
votes
5answers
9k views
Cannot install mysql2 gem
I'm unable to install the mysql2 gem in my Windows7 x64 system. I tried using both the 32-bit and 64-bit versions of MySQL server but none got me any further.
I installed Ruby 1.8, the development ...
31
votes
6answers
18k views
Ruby, Rails: mysql2 gem, does somebody use this gem? Is it stable?
I found mysql2 gem. It works fine with ruby 1.9 and utf8 encoding (as opposed to mysql gem).
But I have doubts. Does somebody use this gem in production? What about the performance test? Is it faster ...
35
votes
13answers
33k views
Create a new Ruby on Rails application using MySQL instead of SQLite
I want to create my Rails application with MySQL, because I like it so much. How can I do that in the latest version of Rails instead of the default SQLite?
26
votes
4answers
15k views
Errors Installing mysql2 gem via the Bundler
I am trying to install the mysql2 gem via the Bundler, but it keeps dying with the following error:
** executing command
...
10
votes
9answers
10k views
Snow Leopard + Ruby 1.9.1 + MySQL Gem = Huge problems
I tried for about 3-4 hours trying to get the mysql gem to install for ruby 1.9.1 on snow leopard. The mysql gem used to work just fine on 1.9.1 before I upgraded to snow leopard. I uninstalled ...
11
votes
2answers
6k views
rails + MySQL on OSX: Library not loaded: libmysqlclient.18.dylib
I'm just starting out with Ruby (and rails). I did the setup according to http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec:ruby gems, using rvm. I have everything working well with ...
7
votes
3answers
2k views
How to store uuid as number?
Based on the answer of question, UUID performance in MySQL, the person who answers suggest to store UUID as a number and not as a string. I'm not so sure how it can be done. Anyone could suggest me ...
8
votes
8answers
27k views
Could not connect: Lost connection to MySQL server at 'reading initial communication packet', system error: 0
I am running a Rails app so now I am trying to remote connect to mysql and I am getting this error
Could not connect: Lost connection to MySQL server at 'reading initial communication packet', system ...
25
votes
6answers
20k views
MySQL - Failed to build gem native extension
I am using Fedora 14 and I have MySQL and MySQL server 5.1.42 installed and running.
Now I tried to do this as root user:
gem install mysql
But I get this error:
Building native extensions. This ...
4
votes
3answers
4k views
Ruby mysql2 gem compiled for wrong mysql client library version
After updating MySQL to 5.5 using apt-get, the mysql2 gem stopped working.
Here's the error:
Incorrect MySQL client library version!
This gem was compiled for 5.5.17 but the client library is ...