Not connecting to Mysql after upgrading PHP version
Posted by: Dalvinder Singh (182.73.128.---)
Date: January 02, 2015 09:20AM

Hi everyone, my s/w details are as following:

Windows 7, 64 bit
Wamp server version 2.5
Apache/2.4.9 (Win64)
PHP version: 5.5.12
MySQL Version : 5.6.17

I upgraded my PHP version to 5.6.3. I used Thread Safe build. I made the required changes like copying wampserver.conf file, copying file php.ini_development twice, making some change to the php.ini files to WAMPise them.
Now the newly upgraded version of PHP was working very good on Apache and in command line. All the programs were being executed without any error. Then I tried to work on Mysql. When I tried to execute a program, it was giving an error message "could not find driver"..But when I switched to my previous PHP version i.e. 5.5.12 then the mysql was working good and it connected to database.
Now please help me so that I can connect my newly upgraded PHP version to Mysql.
Thanks

Options: ReplyQuote
Re: Not connecting to Mysql after upgrading PHP version
Posted by: RiggsFolly (---.as43234.net)
Date: January 02, 2015 01:37PM

Hi Dalvinder,

I guess you must have missed something !

What mysql extension are you using? mysql_* or mysqli_* or PDO

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Not connecting to Mysql after upgrading PHP version
Posted by: Dalvinder Singh (182.73.128.---)
Date: January 03, 2015 07:07AM

Hi RiggsFolly, I am using PDO..
Thanks

Options: ReplyQuote
Re: Not connecting to Mysql after upgrading PHP version
Posted by: RiggsFolly (---.as43234.net)
Date: January 03, 2015 06:21PM

Please cheave the following PHP extensions activated

php_mysqli
php_mysql

Also check that yu added the default port number to this parameter.

mysql.default_port = 3306

If this does not work, then you had better post yout whole phpForApache.ini file

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Not connecting to Mysql after upgrading PHP version
Posted by: Dalvinder Singh (106.192.157.---)
Date: January 04, 2015 06:07AM

Dear RiggsFolly, I am unable to post my whole phpforapache.ini file because it is saying to shorten the message. please tell me
mysql.default_port = 3306 should be changed in phpforapache.ini only or in php.ini also...and how can i activate the extensions php_mysqli and
php_mysql
I can email you my whole phpforapache.ini file.
Thanks

Options: ReplyQuote
Re: Not connecting to Mysql after upgrading PHP version
Posted by: RiggsFolly (---.as43234.net)
Date: January 04, 2015 02:47PM

mysql.default_port = 3306 should be added to both ini files.

Activate extensions using the wampmanager menus

wampmanager -> PHP -> Extensions -> click the extension you want to activate if it is not ticked

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.