Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

15.4. Database

15.4.1. MySQL

			
zf configure dbadapter "adapter=Pdo_Mysql&username=test&password=test&dbname=test"
			
				

15.4.2. SQLite

		
$ 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
		
				
comments powered by Disqus