Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/60.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql localhost:3000数据库适配器_Mysql_Ruby On Rails_Ruby - Fatal编程技术网

Mysql localhost:3000数据库适配器

Mysql localhost:3000数据库适配器,mysql,ruby-on-rails,ruby,Mysql,Ruby On Rails,Ruby,如果我的localhost:3000页面显示“数据库适配器postgresql”,这是否意味着postgresql正在运行,而不是mysql 背景:我最初安装了postgresql,后来安装了mysql 我的database.yml文件当前包含以下内容,因此我不确定这里哪里出了问题 development: adapter: mysql2 host: localhost database: projects username: root password: pool:

如果我的localhost:3000页面显示“数据库适配器postgresql”,这是否意味着
postgresql
正在运行,而不是
mysql

背景:我最初安装了
postgresql
,后来安装了mysql

我的
database.yml
文件当前包含以下内容,因此我不确定这里哪里出了问题

development:
  adapter: mysql2
  host: localhost
  database: projects
  username: root
  password: 
  pool: 5
timeout: 5000

1:在gem文件中添加
gem'mysql2'

2:运行
捆绑安装

3:
mysql-u root
#用于登录并创建数据库

4:mysql>
创建数据库项目


希望这对你有帮助

您是否创建了新的mysql数据库?叫projects@mpath我的答案对你有用吗?还是还有什么问题?