phpMyFaq and EasyPHP on windows install problem

All about webserver configurations, PHP and databases.

Moderator: Thorsten

matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post 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
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Prodigy
Posts: 10
Joined: Thu Aug 03, 2006 8:57 pm

Post 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
Post Reply