15.4.1. MySQL
zf configure dbadapter "adapter=Pdo_Mysql&username=test&password=test&dbname=test"
$ sudo apt-get install php5-sqlite mkdir -p data/db; chmod -R a+rwX data
zf.sh configure db-adapter \ 'adapter=PDO_SQLITE&dbname=APPLICATION_PATH "/../data/db/guestbook.db"' \ production zf.sh configure db-adapter \ 'adapter=PDO_SQLITE&dbname=APPLICATION_PATH "/../data/db/guestbook-testing.db"' \ testing zf.sh configure db-adapter \ 'adapter=PDO_SQLITE&dbname=APPLICATION_PATH "/../data/db/guestbook-dev.db"' \ development
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。