Database connection failed

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
asilveri
Posts: 10
Joined: Mon Mar 09, 2009 5:58 pm

Database connection failed

Post by asilveri »

Script URL: http://www.phpjunkyard.com/free-helpdesk-software.php
Version of script: 2.0
Hosting company: Godaddy
URL of phpinfo.php: http://eden.rutgers.edu/~asilveri/Support/phpinfo.php
URL of session_test.php:http://eden.rutgers.edu/~asilveri/Suppo ... n_test.php

What terms did you try when SEARCHING for a solution: connection fail, database connection


Write your message below:
Hello all,

Hesk works great from what im hearing but i am doing something wrong. I uploaded all the files from the hesk.zip to my ftp server. When i get to step 3 in the installation process i put in all the information for

Database Host:Technician.db.3890028.hostedresource.com
Database Name:Technician
Database User (login):Technician
User Password:
Table prefix:Hesk_1


In phpmyadmin i create a database and add its information to the above. When i click next i get the following message.

Database connection failed!
Double-check database name and make sure the user has access to the database. If not sure contact your hosting company for the correct information!


I randomly named table prefix Hesk_1. Am i suppose to go into phpmyadmin and add a table called Hesk_1? or will this be done automatically in the next step.

If this is anymore information that is needed please let me know.
Im am new to this, thank you for the help.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

One of these isn't correct (probably the Database Name: one):

Database Host:
Database Name:
Database User (login):
User Password:

- OR -

The database user doesn't have permission to access the database (database name).

This is not something we can help you with, you need to check with your host for the correct login info. Once the script is able to connect to the database all tables will be setup automatically.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
asilveri
Posts: 10
Joined: Mon Mar 09, 2009 5:58 pm

Thanks for reply

Post by asilveri »

I have verified all the information with my host and it is all correct. Anyone have any idea on what the issue could be?
asilveri
Posts: 10
Joined: Mon Mar 09, 2009 5:58 pm

Re: Thanks for reply

Post by asilveri »

asilveri wrote:I have verified all the information with my host and it is all correct. Anyone have any idea on what the issue could be?

Here are some pictures if this helps

Image
Image[/img]
YankeePicker
Posts: 16
Joined: Fri Mar 06, 2009 4:48 pm

Post by YankeePicker »

Can you verify that the dbuser (Hesksupport1) has rights to the database (Hesksupport1)?
[color=red]Caution:[/color] YankeePicker may appear smarter than he really is. Advice not to be taken internally. Ask your Doctor if YankeePicker is right for you.
cata1do
Posts: 6
Joined: Wed Mar 04, 2009 8:07 pm

Post by cata1do »

have you tried with localhost?
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

First check/try what YankeePicker and cata1do suggested.

If you can't get it to work download this file:
http://www.phpjunkyard.com/extras/mysql_test.zip

Open it in a text editor and change the settings to

Code: Select all

$hesk_settings['db_host']='Hesksupport1.db.3890028.hostedresource.com';
$hesk_settings['db_name']='Hesksupport1';
$hesk_settings['db_user']='Hesksupport1';
$hesk_settings['db_pass']='enter your password here';
Upload to the server, open in browser and see what message you get.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Just a heads up: database names and passwords are CaSe SeNSiTiVe! "Hesksupport1" isn't the same as "hesksupport1"
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
asilveri
Posts: 10
Joined: Mon Mar 09, 2009 5:58 pm

Thanks for the responses

Post by asilveri »

I uploaded the sql test file and it says it connected successfully, the thing is it says this for any settings i put in the file. And i forgot to mention that i have all the hesk files uploaded through SSH. Would that matter?
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Try contacting your host and ask what info should be used for PHP scripts to connect to the database.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply