Installation problem (Can't connect to the database)

Installation problem (Can't connect to the database)

Tuesday 04 December 2007 3:23:28 am - 4 replies

Modified on Tuesday 04 December 2007 3:25:48 am by Tomas Engström

Author Message

Paul Leclercq

Tuesday 04 December 2007 3:33:59 pm

Hello,

I would recommend you try creating a simple php script on your server before installing ezpublish

try this:

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

You will need to make sure you MySQL server is properly runny and interfaced with your server before trying to install ezPublish, maybe installing MySQL query browser or phpmyadmin would help:
http://www.mysql.com/products/tools/query-browser/

I would also recommend using apache, if you can. Since this is the standard for php applications and you would probably get more active support for this type of configuration.

Mark Marsiglio

Tuesday 04 December 2007 5:53:35 pm

you also might try root@127.0.0.1 instead of localhost. If that works it might point you to a problem with the mysql.sock.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Tomas Engström

Wednesday 05 December 2007 12:49:22 pm

aa ye thx guys i will try the ip address instead of the name service ;)

and im not sure but i dont think the webserver has anything to do with the
connection problem, i think it is the mysql service...

but anyways thx a lot guys

:D

Fátima Chapri

Monday 10 December 2007 2:07:29 pm

Hi,

I had the same problem and used the following:

mysql> SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.