如何配置和安装Phundament 3与MySQL? [英] How to config and install Phundament 3 with MySQL?

查看:149
本文介绍了如何配置和安装Phundament 3与MySQL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已下载并将本地计算机中的 phundament3 放置在本地计算机上,但是在尝试config /使用Mysql数据库安装它,如安装文档
我可以找到它的 Mysql 转储?
如果安装为我做所有,那么如何在本地?可以任何一个解释步骤,
使用Ubuntu 11.04

Downloaded and place phundament3 in local machine, ya its working but not when trying to config /install it with Mysql database followed like installation doc ,
where I can find its Mysql dump?
if installation do all for me then how to do in local? can any one explain steps, using Ubuntu 11.04

推荐答案

如果你不小心混淆了你的安装,您已经使用SQLite数据库(这是默认值)安装Phundament,但是要使用MySQL安装它,请执行以下步骤:

If you accidentally mixed up your installation, eg. you've installed Phundament with a SQLite database (which is the default), but you want to install it with MySQL, take the following steps:


  • 更新Yii的 db 组件在 config / main.php 中运行您的MySQL数据库; 注意:默认情况下,Phundament的 console.php 使用与网络应用程序相同的组件。

  • go到您的网络应用程序文件夹并运行 ./ yiic migrate

  • 您应该会看到要应用的迁移列表,answer yes 开始迁移

  • update Yii's db component in config/main.php to run with your MySQL database; Note: by default Phundament's console.php uses the same components as the web-app.
  • go to your web app folder and run ./yiic migrate
  • you should see a list of migrations to be applied, answer yes to start the migration

所有迁移都应该再次运行,只需与MySQL数据库。

All migrations should now run again, just with your MySQL database.

这篇关于如何配置和安装Phundament 3与MySQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆