2012-01-13 2 views
0

레일에서 데이터베이스를 이전하려고하는데 테이블을 찾을 수 없습니다. 개발 환경만을 사용하고 내가 취하는 단계는 Lynda rails 2010 튜토리얼을 통해 진행됩니다. 어떤 도움이라도 대단히 감사 할 것입니다. 다음은레일에서 데이터베이스를 이전했지만 테이블을 찾을 수 없습니까?

NOC-4:app noc$ rake db:migrate 
(in /Users/noc/rails_projects/app) 
== CreateUsers: migrating ==================================================== 
-- create_table(:users) 
    -> 0.0566s 
== CreateUsers: migrated (0.0567s) =========================================== 

NOC-4:app noc$ mysql -u simple_cms -p simple_cms_development 
Enter password: 
Reading table information for completion of table and column names 
You can turn off this feature to get a quicker startup with -A 

Welcome to the MySQL monitor. Commands end with ; or \g. 
Your MySQL connection id is 15 
Server version: 5.5.20 MySQL Community Server (GPL) 

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. 

Oracle is a registered trademark of Oracle Corporation and/or its 
affiliates. Other names may be trademarks of their respective 
owners. 

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 

mysql> SHOW TABLES 
    -> 

아래 정보 내 database.yml을하다

# SQLite version 3.x 
# gem install sqlite3 
# 
# Ensure the SQLite 3 gem is defined in your Gemfile 
# gem 'sqlite3' 
development: 
    adapter: mysql 
    database: simple_cms_development 
    username: simple_cms 
    password: secretpassword 
    pool: 5 
    timeout: 5000 

# Warning: The database defined as "test" will be eased and 
# re-generated from your development database when you run "rake". 
# Do not set this db to the same as development or production. 
test: 
    adapter: mysql 
    database: simple_cms_test 
    username: simple_cms 
    password: 
    pool: 5 
    timeout: 5000 

production: 
    adapter: mysql 
    database: simple_cms_development 
    username: simple_cms 
    password: 
    pool: 5 
    timeout: 5000 

또한 내 필요한 정보를 내 Gemfile

source 'http://rubygems.org' 

gem 'rails', '3.1.3' 

# Bundle edge Rails instead: 
# gem 'rails',  :git => 'git://github.com/rails/rails.git' 

gem 'ruby-mysql' 
gem 'activerecord' 
gem 'mysql' 
gem 'rake', '~> 0.8.7' 

gem 'therubyracer', :require => 'v8' 

답변

1

가 어디 세미콜론, 임마에서입니까?

mysql> show tables; 
+0

와우 .... Thx jibiel .... 저는 dev 디렉토리에 들어가는 cisco와 juniper guy입니다. Thx mate;) – beach180

+0

@ beach180 소년, 이것은 들썩 들썩합니다. Btw 내 superanswer을 받아들이시겠습니까? – jibiel

+0

음 ... stackoverflow 신규 ... 어떻게 superanswer 동의합니까? 확인하면 15 평판이 필요합니다 ( – beach180

관련 문제