Mysql localhost:3000数据库适配器
如果我的localhost:3000页面显示“数据库适配器postgresql”,这是否意味着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:
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我的答案对你有用吗?还是还有什么问题?