Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: cant use mysql_connect Date: Mon, 29 Oct 2012 07:34:00 +0100 Lines: 41 Message-ID: References: <1944408.oD1fHKOdpR@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 27yTMBMO81J99RRMDZZkkg/JYCKalyRnH1PCcYLgMazFBMn3VeTzhCPGM+EgA9Zu5f Cancel-Lock: sha1:LrjpsjdOvZbvNKXH9am5u2zgxTI= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121021 Firefox/16.0 SeaMonkey/2.13.1 In-Reply-To: <1944408.oD1fHKOdpR@PointedEars.de> Xref: csiph.com comp.lang.php:7379 Thomas 'PointedEars' Lahn wrote: > J.O. Aho wrote: > >> Markus Grob wrote: >>> I have changed to Apache 2.4 with PHP 5.4 and MySQL 5.5. MySQL is running >>> and all databases were imported from the earlier version. >>> Apache is running and php_info gives me the hint, that mysqlnd was found: >>> >>> PHP Version 5.4.4 >>> System Windows NT KRWM0023 6.1 build 7601 (Windows 7 Enterprise >>> Edition Service Pack 1) i586 >>> mysqlnd enabled >>> >>> But if I now try to connect to the database, pypmyadmin tells me, that >>> mysql can't be found: Cannot load mysql extension. >> >> phpmyadmin uses the mysql extension, not the mysqlnd, so you need to find >> a compiled mysql extension for your version of PHP (usually a lot easier >> if you use Linux/BSD as your server OS, for then you generally get >> everything you need at once and less risk for backdoors in modules). > > Utter nonsense. phpMyAdmin is fully capable of using the much safer mysqli > extension, which is used by the mysqlnd extension: I stand corrected in this matter (haven't used phpmyadmin for years and back then it didn't support mysqli and it was prone to a lot of security issues, which it is still), and it's quite unnecessary to make accusations against a person, no matter how subtitle it is. But still, the OP will need to install the mysql extension >>> My one site tells me the same: >>> Fatal error: Call to undefined function mysql_error() in... Even if he gets his phpmyadmin to work, his site will not. Of course he can rewrite it, but I guess he rather gets it up and running now and not next year. -- //Aho