Home | 簡體中文 | 繁體中文 | 雜文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | Email

14.4. Database

14.4.1. MySQL

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

14.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