错误:表不存在:显示“session”中的完整字段

时间:2020-12-30 23:12:29

I just cloned an application from my developer and I want to set it up on my computer. I get this error when I go to localhost:3000, and I don't really understand what it means.

我刚从我的开发人员那里克隆了一个应用程序,我想在我的电脑上安装它。当我到localhost:3000时,我得到了这个错误,我不太明白它是什么意思。

Error:

错误:

ActiveRecord::StatementInvalid - Mysql2::Error: Table 
'goacquire_development.sessions' doesn't exist: SHOW FULL FIELDS FROM `sessions`:

I think it could be my installation process, I'll appreciate if someone could explain this error to me.

我想这可能是我的安装过程,如果有人能向我解释这个错误,我将不胜感激。

2 个解决方案

#1


3  

A few ideas:

几个想法:

  1. Make sure MySQL is running on your local machine.
  2. 确保MySQL在本地机器上运行。
  3. Make sure you have run rake db:create and rake db:migrate.
  4. 确保已经运行了rake db:create和rake:迁移。
  5. Make sure you have a database.yml file configured with MySQL settings.
  6. 确保你有一个数据库。配置了MySQL设置的yml文件。

Hope this helps.

希望这个有帮助。

#2


0  

  • Install MySQL server on your machine
  • 在机器上安装MySQL服务器
  • Config database.yml (Create new if your app don't have.)
  • 配置数据库。yml(如果你的应用程序没有,就创建一个新的)。
  • Run commands:
  • 运行命令:
# cd /path/to/your/app
# bundle install
# rake db:create
# rake db:migrate
# rails s

#1


3  

A few ideas:

几个想法:

  1. Make sure MySQL is running on your local machine.
  2. 确保MySQL在本地机器上运行。
  3. Make sure you have run rake db:create and rake db:migrate.
  4. 确保已经运行了rake db:create和rake:迁移。
  5. Make sure you have a database.yml file configured with MySQL settings.
  6. 确保你有一个数据库。配置了MySQL设置的yml文件。

Hope this helps.

希望这个有帮助。

#2


0  

  • Install MySQL server on your machine
  • 在机器上安装MySQL服务器
  • Config database.yml (Create new if your app don't have.)
  • 配置数据库。yml(如果你的应用程序没有,就创建一个新的)。
  • Run commands:
  • 运行命令:
# cd /path/to/your/app
# bundle install
# rake db:create
# rake db:migrate
# rails s