Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | 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