today I successfully tested PMF using also a connection to the just installed MySQL v4.1.21. I'll write a faq for installing PHP, configuring it under IIS, installing MySQL to help people to install PMF on Windows.
In the mean time here is the sample: open a new text document under the root of your PMF install path and rename it e.g. testDbConnection.php and then play with your local MySQL security until that page will return no message:
Code: Select all
<?php
$DB['server'] = 'localhost';
$DB['user'] = 'dbUser';
$DB['password'] = 'dbPassword';
$DB['db'] = 'dbName';
$DB['prefix'] = '';
$DB['type'] = 'mysql'; // { 'mysql' 'pgsql' 'sybase' 'mssql' 'mysqli' 'sqlite' 'ibm_db2' }
require_once('inc/Db.php');
$db = PMF_Db::db_select($DB['type']);
@$db->connect($DB['server'], $DB['user'], $DB['password'], $DB['db']);
?>
Code: Select all
The connection to the MySQL server could not be established.
The error message of the MySQL server:
Access denied for user: 'dbUser@localhost' (Using password: YES)
Regards,
Matteo