Page 2 of 2

Posted: Tue Sep 05, 2006 8:55 pm
by matteo
Hi,
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']);
?>
A connection error will be returned as:

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)
When no error will be returned you'll be ready to run the PMF installer ;).

Regards,
Matteo

Posted: Sat Sep 09, 2006 2:01 pm
by Prodigy
Hi guys,

I'm terribly sorry :oops: I just try again (under) Windows and it works.

I only uninstall my EasyPHP software of my computer, install again.

I don't understand what happens... :?

So sorry again.

Regards