similar to: Rails-Mysql driver installation problem? - newbie

Displaying 20 results from an estimated 10000 matches similar to: "Rails-Mysql driver installation problem? - newbie"

2006 May 09
2
newbie: OSX Ruby/MySQL issue?
I''m three pages into the OnLamp RoR Tutorial [1] and am wrestling with what appears to be a MySQL connection problem. I''ve created a simple controller called "recipe" with a corresponding "recipes" mysql table. The recipe controller is just a simple scaffold. When I browse to "recipe/new", though, I get these errors: == NoMethodError in
2008 Dec 01
0
RuntimeError (Mysql not loaded)
Any idea why mysql gem would not load properly ? log/production.log: RuntimeError (Mysql not loaded): /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/ connection_adapters/mysql_adapter.rb:7:in `define_all_hashes_method!'' [XXXX]$ irb irb(main):001:0> require ''rubygems'' => true irb(main):002:0> require ''mysql'' => true
2009 Oct 01
3
mongrel + mysql can't connect in custom mysql install
Hi all... The linux box I am working on I do not have root access to, and given I am at a government site all hope of that is lost. I have installed the mysql gem as follows: env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/home/t192zcs/mysql/mysql-5.1.39-linux-x86_64-icc-glibc23/bin/mysql_config
2006 Jan 24
1
Newbie: Cookbook Application problem with MYSQL
Hi everybody, I''ve been reading lot of material about Ruby on Rails, and it looks like really rocks. I''ve downloaded the one-click version for Windows and started to build the example cookbook app, found in: http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1 Everything looks good, but when I''m trying to create a new Recipe
2006 Apr 17
7
Action Controller: Exception caught
Hi, I''m running the cookbook example from ONLamp.com. I have tried to test my site and it comes up with the the message on the site: ActiveRecord::StatementInvalid in RecipeController#index Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS FROM recipes RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace
2006 May 24
6
newbie question: missing template
Hi I''m new to this forum and new to Rails so excuse me if this is a daft question. I''m following the ONLamp.com tuturial and all has been well untill changing the template for the recipes. I have followed the instructions and added this code to the controller: class RecipeController < ApplicationController scaffold :recipe def list @recipes = Recipe.find_all end
2006 May 15
3
Mysql::Error in RecipeController#new
Hi, I''m doing the following tutorial :http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3 but when I''m trying to access the database I get the following error #28000Access denied for user ''root''@''localhost'' (using password: NO) That''s strange because the database.yml file is defined with a password : development:
2006 May 15
0
uninitialized method ''init'' for MySql::Class
I''ve been going through the Ruby on Rails tutorial at OnLamp.com on my Debian machine, and I ran into the following error after creating a ''recipes'' table in my ''cookbook'' database: NoMethodError in RecipeController#new uninitialized method ''init'' for MySql::Class RAILS_ROOT: /var/rails/cookbook/public/../config/.. Any ideas on how
2006 Jul 07
2
Errno::ENOENT in RecipeController#new
I''m brand new to Rails and I''m trying to work through the ONLamp.com Rolling with Ruby on Rails tutorial. I''m trying to connect to my mysql database and I''m getting the following: <i> Errno::ENOENT in RecipeController#new No such file or directory - /tmp/mysql.sock RAILS_ROOT: /home/jason/rails/cookbook/public/../config/.. Application Trace |
2006 Jun 20
0
problem with list definition
hello, I am gererateing a missing template error when I overwrite the list part of the scaffold. it seems to have the wrong path to list.rhtml. Looking at the error path (below) it is looking for in a folder called <public>. This seems wierd to me becausae that path does not exist in the frame work. the path should be /Users/dima/Documents/ruby/rails/cookbook/app/views/recipe/list.rhtml
2005 Mar 18
0
scaffold generator, pluralization and tutorials
Hi All the tutorials call their controllers ''TodoController''[1] or ''RecipeController''[2] (singular), but "script/generate scaffold Recipe" for example generates a ''RecipesController'' (in recipes_controller.rb) As I''m rather new to RoR I don''t know if that convention changed, I read something about it here:
2010 Dec 15
2
Error reverse engineering MySQL with RMRE
Hi I am been trying in vain to auto-gen models by reverse-engineering mysql using RMRE. It complains mysql2 gem missing but as seen in my Rails environment below, it is there. Here''s my Rails environment and RMRE error. Experts... please help! Thanks a ton in advance!! === Ruby version 1.9.2 (x86_64-linux) RubyGems version 1.3.7 Rack version 1.2 Rails version 3.0.3 Active Record
2006 Jan 05
5
Lost connection to Mysql
I''m trying to set up RoR on a laptop and having all sorts of troubles. I''m running XP SP2, I did a quick install of appache/mysql using Xampp, which worked fine. I grabbed the latest windows install of ruby and rails, installed it ok and got it running. The moment I try to run a rails page that queries a database, it fails every time, and I get the following error:
2005 Jan 22
6
Still having config problems
Hi, Having completely failed to sort out my apache 500 error, I thought I would work through the "Rolling with Ruby on Rails" tutorial at http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html I am using webrick, not apache - and still getting 500 errors. When I get to page 4 where http://127.0.0.1:3000/recipe/new should give me a data entry screen, instead I get...
2010 Jun 15
3
Newbie trying to set up rails with MySQL
Hello -- Please pardon my newness -- I''m just getting started with rails, and I''m having some difficulty getting it set up with MySQL. I am able to get the basic ruby server running (script\server). When I created a new page (using script/generate controller about index), I am not able to navigate to the new page, and Ruby either crashes or gives me an error: /!\ FAILSAFE /!\
2006 Jan 20
0
Newbie installation problem: gem [command] --remote
Hi, i am a newbie to RoR. I downloaded Ruby 1.8.2-15 Windows installer yesterday and trying to install following Curt Hibbs'' Rolling with Ruby on Rails(http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html). My OS is Win XP SP2 and the 1st step installation was fine. D:\rg\xampp\ruby\bin>ruby -v ruby 1.8.2 (2004-12-25) [i386-mswin32] Next I was going to install rails remotely,
2006 Feb 23
0
Problem with db_schema_import and MySQL timestamp!
Hi, This post concerns a SQL error while I try to import a schema into MySQL with timestamp dates. To reproduce try these commands: mickey@bunny:~/dev/rails/timeonrails$ rake db_schema_dump (in /home/mickey/dev/rails/timeonrails) mickey@bunny:~/dev/rails/timeonrails$ cat db/schema.rb # This file is autogenerated. Instead of editing this file, please use the # migrations feature of ActiveRecord
2005 Dec 30
1
Problems with Testing (Depot) demo app in Agile Rails book
I''ve encountered a perplexing problem whilst following along the demo app in the "Agile Web Development with Rails" book. Any help would be greatly appreciated. Here is a brief time line of my tale of woe:- 0. Been programming (business apps) and designing/building DBs for two decades - but new to both Ruby and Rails (so I apologise in advance if I''ve made some
2006 Jan 21
2
problems in moving an application database from a local to a remote mysql server
hi. i''ve an application which is using a local mysql server (on localhost). i then moved the mysql server to another machine (remote host) and changed accordingly the "database.yml" file. when i launch webrick from the "localhost", it can connect to the database but as soon as i call a controller of the application (for example
2010 Mar 22
0
rspec bug, on Mysql::Error: MySQL server has gone away: ROLLBACK TO SAVEPOINT active_record_1
hello can anybody help me with this bug, (this sometimes occur sometimes passes) 1) ActiveRecord::StatementInvalid in ''MailReader on Simple Tasks should not accept duplicate email'' Mysql::Error: MySQL server has gone away: ROLLBACK TO SAVEPOINT active_record_1 /home/poldz/.gem/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract_adapter.rb:219:in