search for: mysql2

Displaying 20 results from an estimated 103 matches for "mysql2".

Did you mean: mysql
2012 Jan 14
2
mysql2 error in production
As I need to upgrade a Rails app to 3.1 , I am trying to deploy it on a remote production server ( Linux Debian, after installing Rails 3.0.9 under rvm with all needed gems including mysql2 version 0.2.18 used by the app) after deployment, starting the app, I get a Load error w mysql2... ** [out :: www.mydomain.com] /var/www/vhosts/mydomain.com/rails/ testsbga/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.18/lib/mysql2.rb: 9:in `require'': libmysqlclient_r.so.15: cannot open sha...
2013 May 12
15
Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?
...gems. I''ve visited RVM''s website but their advise to get "mysql gem loaded" does the same thing as below aborted output! I''m not sure that this website is being maintained anymore as their copyright notice is 2011. What/how suggestions appreciated to get this mysql2 gem installed so that i can use rails/ruby against this database? My ROR config: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.2.0] Rails 3.2.12 RVM gem managed So far Macport seems to work to install mysql and gen/install the mysql2 gem. I''ve not tried this gem yet as i...
2013 Nov 26
2
'$ rake db:create' don't work!
...inal on Mac Os Mavericks I create a project: rails new vota_prato -d mysql after I will try to create a database with this command: $ rake db:create and I have this error: MacBook-Pro-de-Romenig:vota_prato romenig$ rake db:create rake aborted! dlopen(/Users/romenig/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.14/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib Referenced from: /Users/romenig/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.14/lib/mysql2/mysql2.bundle Reason: image not found - /Users/romenig/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.14/lib/mysql2/mysql2.bundle /...
2013 Jul 13
1
Rails and MySQL
...led on my pc. Do I need to ran something in the ruby to use MySQL? C:\>rails new MySQLRestaurant --database=mysql C:\>cd MySQLRestaurant C:\MySQLRestaurant>rails generate scaffold review poster:string date:datetime ar ticle:text C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/l ib/mysql2/mysql2.rb:2:in `require'': 126: The specified module could not be found . - C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-min gw32/lib/mysql2/1.9/mysql2.so (LoadError) from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/g...
2011 Mar 20
10
Unable to install mysql2 gem on windows 7
...am getting the following error message while installing, let me know if any one needs some more details. I followed instruction from "https://github.com/oneclick/rubyinstaller/wiki/Development-Kit". I am using ruby 1.9.2p136 (2010-12-25) [i386-mingw32]. E:\work_desk\trunk>gem install mysql2 -v 0.2.4 Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. C:/Ruby192/bin/ruby.exe extconf.rb checking for rb_thread_blocking_region()... yes checking for mai...
2011 Mar 14
3
error during installing gem named mysql2
*hello everyone,* * * *im getting this error when im installing a gem via command prompt * *can any one help me out? please* * * *thanks.* * * *C:\>gem i mysql2* *Temporarily enhancing PATH to include DevKit...* *Building native extensions. This could take a while...* *ERROR: Error installing mysql2:* * ERROR: Failed to build gem native extension.* * * * C:/Ruby192/bin/ruby.exe extconf.rb* *checking for rb_thread_blocking_region()... yes* *...
2011 Jul 18
1
rails server being aborted due to mysql lib file not available
Hi, My system has the following : MacOs Leopard Rails 3 Ruby 1.9 Mysql 5.1.58 mysql2 ruby gems My problem is that when i give "rails server", the task aborts with the foll error rails server/Users/nisha/.rvm/gems/ruby-1.9.2-p180@rails3/gems/ railties-3.0.5/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 /User...
2011 Sep 18
0
Two Separate Issues: rails generate
...ble dir /Library/WebServer/Documents in PATH, mode 040777 I set my project folder permissions to -R 777 to alleviate permissions issues. But, it''s giving me this. What are the proper permissions for a /Library/WebServer/Documents/project1/ directory? Second, I seem to be having some mysql2 gem issues. > /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) > Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/my...
2011 Feb 20
2
Problem with mysql2 gem and Debian
Hi Guys, I''m having an issue with deploying my application and the mysql2 gem. I am developing on Windows 7 with Ruby 1.9.2 and Rails 3.0.3. On my local machine in development environment the application runs just fine. But when I want to deploy it on our production server I get an error message from passenger. "Please install the mysql2 adapter: `gem install activ...
2010 Sep 23
3
Can't install mysql2 gem on Windows 7
I am new to Ruby and have tried and failed several times installing mysql2 gem on my windows 7 OS. I checked several forums for solutions but still couldn''t get that installed. can someone help my out please? below is the error: c:\>gem install mysql2 Building native extensions. This could take a while. ERROR: Error installing mysql2: ERROR: Failed...
2011 Apr 21
1
GEMFile gem 'mysql2' and mysql version is 4.1.2
Hi all I have a Gemfile with this value gem ''mysql2'' but when I run this command ''$ bundle install'' on my host they said that "The command "bundle install --local" seems to be returning mysql2 dependency error now. Unfortunately mysql2 gem requires mysql 5.1+ ( refer: https://github.com/brianmario/mysql2...
2012 Feb 08
3
An error occured while installing mysql2 (0.3.11), and Bundler cannot continue.
...when I execute "rails new demo1 -- database=mysql" MY environment below: Mac OS 10.4.11, Ruby 1.8.7 Rails 3.2.1, Gem 1.8.15 mysql5 Ver 14.14 Distrib 5.1.61, for apple-darwin8.11.1 (i386) using readline 6.2 mysql (2.8.1) Please help me, thx! more detail message as follows: Installing mysql2 (0.3.11) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /opt/local/bin/ruby extconf.rb checking for rb_thread_blocking_region()... no checking for rb_wait_for_single_fd()... no checking for mysql.h... yes checking for errmsg.h... ye...
2012 Feb 06
3
Bundler - how to re-install all gems after os update?
...tu 12.04 (Alpha) on the root partition, leaving the home partition unchanged. I now find that some things don''t work, I think due to the fact that the system has been updated and versions of libraries have changed. For example I get: $ rails c /home/colinl/.rvm/gems/ruby-1.8.7-p302/gems/mysql2-0.3.10/lib/mysql2/mysql2.so: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory - /home/colinl/.rvm/gems/ruby-1.8.7-p302/gems/mysql2-0.3.10/lib/mysql2/mysql2.so (LoadError) I uninstalled gem mysql2 then did bundle install, which re-installed mysql2 (the same version)...
2011 Dec 08
3
Problem with running "WEbrick"
...d rails then I create a project on "C:\Users\Amiref\Documents\Sites\simple_cms" with this order : "rails new simple_cms -d mysql" then when I use "rails server" to run webrick I saw this error on command prompt : "rails.bat : C:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/mysql2.rb:2:in `require'': Incorrect MySQL client library version! This gem was compile d for 6.0.0 but the client library is 5.1.45. (RuntimeError) At line:1 char:6 + rails <<<< server + CategoryInfo : NotSpecified: (C:/Ruby192/lib/.....
2013 Jan 29
0
mysql installation in Windows 7
I have Windows 7. I am trying to get the gem installed for MySQL Server 5.5 So, I get the zip file for gem from Brian Mario’s repository on github mysql2, extract it in the new mysql2-0.3.12b5 folder and start the procedure as follows. As seen below, I get the error “file ''lib'' not found” at the end. I tried many times, got the same problem. Anyone has a solution to this? EDZIBA-PC /c/railsinstaller/Ruby1.9.3/lib/ruby/gems/1.9....
2011 Jun 08
2
MySql2 adapter hangs in Rails3 on Windows XP
Previously we''ve used Rails2.xx with no problems and we''re trying to upgrade to ruby 1.9.2p180 and Rails 3.0.7 with pik to keep ruby versions separate. After some initial difficulties with MySql2 gem installation, following <a href=http://rorguide.blogspot.com/2011/03/installing- mysql2-gem-on-ruby-192-and.html>these tips</a> got mysql2 v0.2.7 installed. My problem is that mysql2 hangs whenever I invoke it. For instance, rake db:create never finishes. Similarly, "rake db...
2011 Jun 21
2
Problem launching WEBrick in Rails
...going! I''m following the Ruby on Rails Essentials 3 tutorial from Lynda very closely and came across an error at the step when launching WEBrick. MY Setup: I am on OS X. I have installed the MySQL client and ran it from my OS X system prefs. I double checked my gems and mysql (2.8.1) and mysql2 (0.3.6, 0.2.11) are BOTH listed in my local gems list in terminal. I can launch MySQL in terminal as well. Problem: So, the issue is that when launching WEBrick via the ''davidd$ rails server'' command I get: davidd$ rails server /Library/Ruby/Gems/1.8/gems/mysql2-0.2.11/lib/mysql...
2011 Jun 15
11
Problems with " wrong number of arguments (2 for 1) (ArgumentError) " and rails server
...''t can, because when I write "rails server", show me this message: => Booting WEBrick => Rails 3.0.3 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting /home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/ activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'': wrong number of arguments (2 for 1) (ArgumentError) from /home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/ activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'...
2011 Jul 15
1
Rails 3 app has strange behaviour with Mysql2 database
Hi, I have developed a little web app with a sqlite3 database in development environment. Now I switched over to mysql2 for production environment. At a first look everthing looks good! BUT, I have delayed_jobs that run methods in the background, where two nested active records were compared with "if hash1 == hash2", then it should just show whether they are the same or not. With mysql2 in production, it...
2011 Oct 21
7
Error while install mysql2 in windows 7
hello i have problem while install gem mysql2 in windows 7 i have got error An error occurred while installing mysql (0.3.7), and Bundler cannot continue. Make sure that ''gem install mysql2 -v ''0.3.7'''' succeeds before bundling. Please help me i want to codding with rails :) -- Posted via http://www.rub...