Share » Forums » Install & configuration » Error Mysql Connect (4.0)

Error Mysql Connect (4.0)

Error Mysql Connect (4.0)

Friday 23 November 2007 3:04:17 am - 4 replies

Author Message

Tomas Engström

Tuesday 04 December 2007 3:16:16 am

Hey m8

i got the same problems...

ran the installation and it stopped when i filled out the information for the database connection...

i am currently running PHP Version 4.4.7 and mysql 5.0 on my home computer

i gave the installation the root access, but no result and i created a new database for root and granted full access

i created a new user for the database server (global) and with full access and gave the installation the connection information, but it keeps saying:

"The database would not accept the connection, please review your settings and try again. "

so i figured maybe the windows firewall is blocking so i gave it tcp access (manually), but no result...

so here i am ;) anyone got any tips?

or maybe someone can tell me which file i can hack so i can do a work-around in the .php file myself.....

Gaetano Giunta

Tuesday 04 December 2007 12:29:47 pm

Most likely format of mysql user password is wrong.

Mysql changed tha hash function it uses to store internally passwords. PHP 4 connect function uses the old hash metod. Look for old_password in mysql docs or php.net

Principal Consultant International Business
Member of the Community Project Board

Julien Plesniak

Thursday 06 December 2007 12:27:32 am

Hello,

i have try this and its working :

<?php
$link = mysql_connect("localhost", "USER", "PASSWORD")
or die("Impossible de se connecter : " . mysql_error());
echo 'my connection worked';
mysql_close($link);
?>

Julien Plesniak

Thursday 06 December 2007 12:40:06 am

but not ezpublish

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu