logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Mysql extension depreciation notice after upgrade to php 5.5
Author
corvannoorloos



Joined: 11 Jul 2013
Posts: 6

PostPosted: Thu 11 Jul '13 16:38    Post subject: Mysql extension depreciation notice after upgrade to php 5.5 Reply with quote

Hello,

After my upgrade from httpd-2.4.4-win32-VC9 to httpd-2.4.4-win32-VC11 and php-5.4.16-Win32-VC9-x86 to php-5.5.0-Win32-VC11-x86 I keep getting this error (Windows 7 64):
Code:
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\apache\htdocs\wordpress\wp-includes\wp-db.php on line 1140

I've been reading up on http://core.trac.wordpress.org/ticket/21663 and http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers, but unfortunately most is still giberish to me.

I've uncomented extension=php_pdo_mysql.dll and extension=php_pdo_sqlite.dll (and left extension=php_mysql.dll and extension=php_mysqli.dll uncommented). I've also added error_reporting = E_ALL ^ E_DEPRECATED (which doesn't solves the notice?).

According to my phpinfo.php file pdo does load accordingly, but I'm not really sure on what to do next.

Could someone perhaps assist me with this?

Best regards,

Cor
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1266
Location: Amsterdam, NL, EU

PostPosted: Thu 11 Jul '13 17:31    Post subject: Reply with quote

Try
error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE
Back to top
corvannoorloos



Joined: 11 Jul 2013
Posts: 6

PostPosted: Thu 11 Jul '13 21:35    Post subject: Reply with quote

Hello Jan-E,

Thank you for your quick reply. Looks like this removed the notice.

Just to be sure I understand, by including extension=php_pdo_mysql.dll and extension=php_pdo_sqlite.dll (and leaving extension=php_mysql.dll and extension=php_mysqli.dll as is) I've basically set my locale as it should?
And, it's most-likely Smile WordPress that's causing the notice, not me setting up my local setup wrong?
Back to top


Reply to topic   Topic: Mysql extension depreciation notice after upgrade to php 5.5 View previous topic :: View next topic
Post new topic   Forum Index -> Other Software