Jump to content

Recommended Posts

Posted

Hello every one

I tried to install Advanced Guestbook 2.3.4 but I have this error message

 

Warning: mysql_connect(): Access denied for user: 'root@localhost' (Using password: NO) in /home/medwani/public_html/guestbook/lib/mysql.class.php on line 30

 

Any one can help I will appreciate that

Thanks in advance

Simon

Posted

Welcome to the forums Simon

 

here are my notes for using a database

 

-- database connect ----

 

Be sure that in MySql you

 

1 - created the database

2 - created a user

3 -added the user to the database (go back to MySql and find the Add user

select the user and database, and then Add user to database)

 

 

Then to connect to the database in a script use:

 

host: localhost

database: yourCpanelName_databaseName

user: yourCpanelName_databaseUser

password: mypassword

 

* Note password is just as the password,

do not add the CpanelName to it.

 

---------------------------

Posted

Don

Thanks so much for your notes

I have already created the database and the user

I have submitted such info in install.php file. everything went smooth. however when I was done with the instalation and redirected to the admin.php file I got the message I submitted above

Any further help is highly appreciated

Posted

The error message indicates that install script is not connecting to the database

 

You said you created the database and a user

but did not say that you added the user to the database (step 3)

 

if you did then I would double check the spelling and case for the connection info

 

Check the admin/config.inc.php file

so the connection looks like this

 

<?php

/* database settings */

 

$GB_DB["dbName"] = "yourCpanelName_databaseName";

$GB_DB["host"] = "localhost";

$GB_DB["user"] = "yourCpanelName_databaseUser";

$GB_DB["pass"] = "*******";

 

there is not much else unless the zip file you downloaded is corrupt.

You might try another download.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...