[TYPO3-50-general] Phonebook tutorial, am i missing something?
Jochen Rau
j.rau at web.de
Sat Jun 14 07:30:08 CEST 2008
Hi Gijs,
Gijs Epping schrieb:
> Hello,
>
> I am trying to get the phonebook tutorial running but no luck. After
> installing the needed packages (typo3cr, phpcr) it got up to the
> following error:
>
> /*************************************/
> invalid data source name
>
> PDOException thrown in file
> TYPO3CR/Classes/Storage/Backend/F3_TYPO3CR_Storage_Backend_PDO.php in
> line 53.
>
>
> /var/www/html/evs/flow3/gijs-epping/Packages/TYPO3CR/Classes/Storage/Backend/F3_TYPO3CR_Storage_Backend_PDO.php:
>
>
> 00051: */
> 00052: public function __construct($dsn, $username = NULL, $password
> NULL) {
> 00053: $this->databaseHandle = new PDO($dsn, $username, $password);
> 00054: $this->databaseHandle->setAttribute(PDO::ATTR_ERRMODE,
> PDO::ERRMODE_EXCEPTION);
>
> /*******************************************/
>
> Now i am looking for the PDO settings (username, password etc) how i can
> configure those but i can't find out where i can edit these settings.
>
> I have PDO installed on our php5 installation with the following
> drivers: sqlite2, sqlite, mysql
>
> Is this enough?
>
> Hope somebody could help me.
The PhoneBookTutorial isn't currently running as the Content Repository
isn't fully implemented yet. I think we have to be patient.
Some time later on you have to specify your database connection by
writing something like
$c->F3_TYPO3CR_Storage_BackendInterface->constructorArguments[1]='mysql:host=xxx;port=xxx;dbname=xxx';
$c->F3_TYPO3CR_Storage_BackendInterface->constructorArguments[2]='username';
$c->F3_TYPO3CR_Storage_BackendInterface->constructorArguments[3]='password';
in your TYPO3v5/Configuration/Components.php. (This is now done in the
file /TYPO3v5/Packages/TYPO3CR/Configuration/Components.php but may
change in the future).
Greetings
Jochen
More information about the TYPO3-project-5_0-general
mailing list