Creating connection to Database Server: Failed!

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Creating connection to Database Server: Failed!

Postby memori » Thu Sep 02, 2010 2:26 pm

Bonjour, Hi
i'm french.

I have this error message and I do not know what to do ?

thanck

TestLink setup will now attempt to setup the database:

Creating connection to Database Server: Failed!
Please check the database login details and try again.
Database Error Message: Une tentative de connexion a échoué car le parti connecté n'a pas répondu convenablement au-delà d'une certaine durée ou une connexion établie a échoué car l'hôte de connexion n'a pas répondu.
memori
TestLink user
 
Posts: 7
Joined: Thu Sep 02, 2010 2:21 pm

Re: Creating connection to Database Server: Failed!

Postby TurboPT » Thu Sep 02, 2010 3:20 pm

English translation:
A connection attempt failed because the connected party did not properly respond after a certain time, or established connection failed because connected host has not responded

Is the database on a remote host? If so, is there any firewall blocking?
TurboPT
Member of TestLink Community
 
Posts: 335
Joined: Sun Dec 10, 2006 4:51 am

Re: Creating connection to Database Server: Failed!

Postby memori » Thu Sep 02, 2010 4:41 pm

hi,

it's on a Virtual machine (vmware), no firewall on
on localhost, with minimum of config.
the last version of testlink and i've install easyPHP on my vm (with apache, etc...)
memori
TestLink user
 
Posts: 7
Joined: Thu Sep 02, 2010 2:21 pm

Re: Creating connection to Database Server: Failed!

Postby TurboPT » Fri Sep 03, 2010 1:39 am

I'm not sure how helpful I can be with the easyPHP...

Are all the various 'AMP' [apache, mysql, php] portions working properly?
... and what are the versions of each of those?
TurboPT
Member of TestLink Community
 
Posts: 335
Joined: Sun Dec 10, 2006 4:51 am

Re: Creating connection to Database Server: Failed!

Postby memori » Fri Sep 03, 2010 7:12 am

hello,

it's EasyPHP-5.3.3 =
php 5.3.3
apache 2.2.16
mysql 5.1.49
phpmyadmin : 3.3.5

all seems ok : Apache service and Mysql service are started
the database is already created manually with sql scripts (find in installation manual, because I could not do with automatic installation but at final it's the same error message)

What do you use instead easy php ?
I can install something else instead if it's free.
initially, I would just tested TESTLINK

thanks
memori
TestLink user
 
Posts: 7
Joined: Thu Sep 02, 2010 2:21 pm

Re: Creating connection to Database Server: Failed!

Postby memori » Fri Sep 03, 2010 7:32 am

TestLink will carry out a number of checks to see if everything's ready to start the setup.

System requirements Server Operating System (no constrains) WINNT
PHP version OK ( 5.2.0 [minimum version] <= 5.3.3 [your version] )

Web and PHP configuration
Maximum Session Idle Time before Timeout 24 minutes and 0 seconds - (Short. Consider to extend.)
Checking max. execution time (Parameter max_execution_time) OK (120 seconds)
Checking maximal allowed memory (Parameter memory_limit) OK (128 MegaBytes)
Checking if Register Globals is disabled OK
Checking MySQL Database OK
Checking Postgres Database Failed! Postgres Database cannot be used.
Checking GD Graphic library OK
Checking LDAP library Failed! LDAP library not enabled. LDAP authentication cannot be used. (default internal authentication will works).
Checking JSON library OK

Notice: Undefined variable: inst_type in C:\testlink\install\installCheck.php on line 46

Read/write permissions
Checking if C:\testlink\gui\templates_c directory exists OK
Checking if C:\testlink\gui\templates_c directory is writable OK
Checking if C:\testlink\logs directory exists OK
Checking if C:\testlink\logs directory is writable OK
Checking if C:\testlink\upload_area directory exists OK
Checking if C:\testlink\upload_area directory is writable OK
memori
TestLink user
 
Posts: 7
Joined: Thu Sep 02, 2010 2:21 pm

Re: Creating connection to Database Server: Failed!

Postby memori » Fri Sep 03, 2010 7:45 am

Hi !

I've solved the problem :

initially i've installed "testlink" in web local (
C:\Program Files\EasyPHP-5.3.3\www\
Root)

now i've created an alias :
testlink C:\testlink\

and now installation is successfull !

Thanks !
memori
TestLink user
 
Posts: 7
Joined: Thu Sep 02, 2010 2:21 pm

Re: Creating connection to Database Server: Failed!

Postby seetaramhegde » Fri Sep 03, 2010 1:22 pm

Hi,
I am also facing the same problem. Apache, mysql, and php are up and running. Even I am able to access testlink through http://localhost/testlink
but it throws the same error "Creating connection to Database Server: Failed!" (Database Error Message: Can't connect to MySQL server on 'localhost' (10061))

any help is really appreciated.

Thanks in advance.

Regards,
Seetaram
Sr. Testing Engineer
seetaramhegde
TestLink user
 
Posts: 1
Joined: Fri Sep 03, 2010 1:10 pm

Re: Creating connection to Database Server: Failed!

Postby TurboPT » Fri Sep 03, 2010 3:32 pm

MYSQL says:
(10061) indicates that the network connection has been refused. You should check that there is a MySQL server running, that it has network connections enabled, and that the network port you specified is the one configured on the server.

Start by checking whether there is a process named mysqld running on your server host. (Use ps xa | grep mysqld on Unix or the Task Manager on Windows.) If there is no such process, you should start the server.

1. Ensure that the mysqld is present. [as specified above]
2. Double-check the entries in the config_db.inc.php file.
3. Ensure no firewall blocking. [if applicable]

Post again, if needed.
TurboPT
Member of TestLink Community
 
Posts: 335
Joined: Sun Dec 10, 2006 4:51 am

Re: Creating connection to Database Server: Failed!

Postby Vinoth Kumar » Thu May 19, 2011 5:34 am

Hi all

I am new to use testlink. While setting up i got few errors like:

TestLink setup will now attempt to setup the database:

Creating connection to Database Server:Failed!
Please check the database login details and try again.
Database Error Message: Access denied for user 'root'@'localhost' (using password: YES)

My apache,MySql services are running and i used Xampp for these apache,MySql,PHP.

Help me out of this.
Thanks in advance.
Vinoth Kumar
TestLink user
 
Posts: 1
Joined: Thu May 19, 2011 5:26 am

Re: Creating connection to Database Server: Failed!

Postby tamdinh » Wed Jul 13, 2016 12:00 pm

I also have issue when install in MacOSX Server Website. The error message is :

TestLink setup will now attempt to setup the database:

Creating connection to Database Server:Failed!
Please check the database login details and try again.
Database Error Message: No such file or directory


How can I solve this problem?
tamdinh
TestLink user
 
Posts: 1
Joined: Sat Jul 09, 2016 8:57 am

Re: Creating connection to Database Server: Failed!

Postby cmyster » Thu Sep 22, 2016 10:38 am

Same issue, on a Linux LAMP with 1.9.15
cmyster
TestLink user
 
Posts: 7
Joined: Wed Dec 09, 2009 9:33 am

Re: Creating connection to Database Server: Failed!

Postby cmyster » Sun Sep 25, 2016 3:50 am

Configuration issue. The DB returned error 2002 but the error message displayed is file not found which is misleading and threw me off track. Once I figured that I have a 2002 error, it was easy to find the issue. In my case I needed to make sure that the socket is defined in php.ini.
cmyster
TestLink user
 
Posts: 7
Joined: Wed Dec 09, 2009 9:33 am


Return to Installation and configuration



Who is online

Users browsing this forum: No registered users and 5 guests

cron