Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Baking: Code automatisch generieren > Datenbankkonfigurationen baken

Datenbankkonfigurationen baken

CakePHP weist Sie gleich darauf hin, dass die Anwendung noch keinen Zugriff auf eine Datenbank hat. Starten Sie deshalb gleich wieder die Konsole per cake bake und wählen Sie D für Database Configuration aus.

Auch dieser Bake-Vorgang läuft interaktiv und schrittweise ab und erstellt die Datei /app/config/database.php für Sie. Das Baken der Datei database.php läuft folgendermaßen ab:

Database Configuration:
Name:
[default] >
Driver: (db2/firebird/mssql/mysql/mysqli/odbc/oracle/postgres/sqlite/sybase)
[mysql] >
Persistent Connection? (y/n)
[n] >
Database Host:
[localhost] >
Port?
[n] > 3306
User:
[root] >
Password:
> ****
Database Name:
[cake] > cakejobs
Table Prefix?
[n] > cj_
Table encoding?
[n] > utf-8
Table schema?
[n] >
Look okay? (y/n)
[y] >

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint