Install : could not connect to database

4 views
Skip to first unread message

RoK

unread,
Jan 15, 2007, 2:50:13 PM1/15/07
to habari-users
Hi,

i have try to install Habari on a test server - Apache/2.0.59 (Win32)
with MySQL -5.0.24a-community-nt and PHP -5.1.6 with POD, pod_sqlite
and mysql modules.

I have create a database named "habari" and create a config.php file
with these settings :

$db_connection = array(
'connection_string' => 'mysql:host=localhost;dbname=habari', // MySQL
Connection string
'username' => 'root', // MySQL username
'password' => 'password', // MySQL password
'prefix' => 'habari__', // the prefix to apply to all tables
);

But when i go to my install directory, i had this message :

"Could not connect to database using the supplied credentials. Please
check config.php for the correct values. Further information follows:
could not find driver"

If someone can explain me this driver problem, it will be nice.

I would like to know how i could help and make french translations for
this project.

RoK

unread,
Jan 15, 2007, 4:07:19 PM1/15/07
to habari-users
Ok, i get it. It's the "pod_mysql" module who need to be activate.
Sorry for the noise...

Matthias Bauer

unread,
Jan 15, 2007, 4:42:30 PM1/15/07
to habari...@googlegroups.com
On 15.01.2007 20:50 RoK wrote:

> i have try to install Habari on a test server - Apache/2.0.59 (Win32)
> with MySQL -5.0.24a-community-nt and PHP -5.1.6 with POD, pod_sqlite
> and mysql modules.

Check phpinfo() for loaded PDO drivers. If MySQL is not listed there,
you need to make sure the php_pdo_mysql extension is loaded. Check
php.ini for a line like extension=php_pdo_mysql.dll. Make sure that file
exists, uncomment the line, restart Apache.

> $db_connection = array(
> 'connection_string' => 'mysql:host=localhost;dbname=habari', // MySQL
> Connection string
> 'username' => 'root', // MySQL username
> 'password' => 'password', // MySQL password

I know it's a test server, but nevertheless, it's not a good idea to run
any application as the MySQL root user.

> 'prefix' => 'habari__', // the prefix to apply to all tables
> );

> I would like to know how i could help and make french translations for
> this project.

Check out the source from SVN and have a look at
habari/htdocs/system/locale/. Copy the en_US dir to a new directory
thereunder, e.g. fr_FR in your case. Then edit habari.po, for each msgid
in there, put the translation into the following msgstr.

I suggest you wait a day or two still, though. Most strings aren't even
marked for translation now. In the meantime, maybe you can look for
translation tools that work with GNU gettext. We're using GNU gettext
style files for i18n.

-Matt

Reply all
Reply to author
Forward
0 new messages