Just trying to install PhpGedView 4.2.3 on my local pc. I have Wampserver installed which has Apache 2.2.11, PHP 5.3.0, MYSql 5.1.36. My Op sys is 64 bit windows 7.
My first error is:
ERROR 2: PDO::__construct() : A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:0)
0 Error occurred on in function __construct
1 called from line 115 of file class_pgv_db.php in function createInstance
2 called from line 276 of file session.php in function require_once
3 called from line 75 of file config.php in function require_once
4 called from line 42 of file install.php
Warning: PDO::__construct() : A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:0) in C:\Wamp\www\phpgedview\includes\classes\class_pgv_db.php on line 115
On check environment config.php is passed and writeable and all warning checks are passed.
When I click next to move to database connection it takes forever and I receive the following message:
Your current database configuration is bad. Please check your database connection parameters and configure again.
SQLSTATE A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
As well as the first message again.
I have created a database called phpgedview prior to doing all this and can sign in to it on phpmyadmin.
Database Type SQL
Database Host localhost
Database Port
Database Username tried both root & phpgedview
Database Password ***********
Database Name phpgedview
Use the database to provide UTF-8 collation NO
Database Table Prefix pgv_
This is doing my nut in! can anyone please help.
Kind Regards
B.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
dxradio. Thanks for the reply. I read through all the post and tried php 5.3.1 but that was just the same. I then tried going down to 5.2.11 and that solved the problem. You would think that phpgedview would mention this in their install data?
Anyway sorted.
Thanks again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can also Google the error, and come up with similar examples where Windows doesn't know that "localhost" actually means 127.0.0.1 and thus causes problems with php 5.3.x and not 5.2.x
eg http://bugs.php.net/bug.php?id=45150
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All
Just trying to install PhpGedView 4.2.3 on my local pc. I have Wampserver installed which has Apache 2.2.11, PHP 5.3.0, MYSql 5.1.36. My Op sys is 64 bit windows 7.
My first error is:
ERROR 2: PDO::__construct() : A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:0)
0 Error occurred on in function __construct
1 called from line 115 of file class_pgv_db.php in function createInstance
2 called from line 276 of file session.php in function require_once
3 called from line 75 of file config.php in function require_once
4 called from line 42 of file install.php
Warning: PDO::__construct() : A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:0) in C:\Wamp\www\phpgedview\includes\classes\class_pgv_db.php on line 115
On check environment config.php is passed and writeable and all warning checks are passed.
When I click next to move to database connection it takes forever and I receive the following message:
Your current database configuration is bad. Please check your database connection parameters and configure again.
SQLSTATE A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
As well as the first message again.
I have created a database called phpgedview prior to doing all this and can sign in to it on phpmyadmin.
Database Type SQL
Database Host localhost
Database Port
Database Username tried both root & phpgedview
Database Password ***********
Database Name phpgedview
Use the database to provide UTF-8 collation NO
Database Table Prefix pgv_
This is doing my nut in! can anyone please help.
Kind Regards
B.
Try specifying
Database Port 3306
(even though you and I know that the default is 3306)
Also search this forum for … pdo.-construct … and you'll findsome similar threads with either WAMP/XAMPP and/or php5.3
Mark
dxradio. Thanks for the reply. I read through all the post and tried php 5.3.1 but that was just the same. I then tried going down to 5.2.11 and that solved the problem. You would think that phpgedview would mention this in their install data?
Anyway sorted.
Thanks again.
You can also Google the error, and come up with similar examples where Windows doesn't know that "localhost" actually means 127.0.0.1 and thus causes problems with php 5.3.x and not 5.2.x
eg
http://bugs.php.net/bug.php?id=45150