Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Date: Sun, 28 Oct 2012 17:51:27 +0100 From: Luuk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.php Subject: Re: cant use mysql_connect References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 57 NNTP-Posting-Host: 2001:980:9089:1:b5aa:76f3:e47d:820f X-Trace: 1351443601 news.xs4all.nl 6929 [2001:980:9089:1:b5aa:76f3:e47d:820f]:48356 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.php:7369 On 28-10-2012 17:30, Markus Grob wrote: > Hello together > > 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 > Build Date Jun 13 2012 21:17:57 > Compiler MSVC9 (Visual C++ 2008) > Architecture x86 > Configure Command cscript /nologo configure.js > "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" > "--without-mssql" "--without-pdo-mssql" "--without-pi3web" > "--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared" > "--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" > "--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared" > "--enable-object-out-dir=../obj/" "--enable-com-dotnet" > "--with-mcrypt=static" "--disable-static-analyze" "--with-pgo" > Server API Apache 2.4 Handler Apache Lounge > Virtual Directory Support enabled > Configuration File (php.ini) Path C:\Windows > > ... > > mysqlnd > mysqlnd enabled > Version mysqlnd 5.0.10 - 20111026 - $Id: > b0b3b15c693b7f6aeb3aa66b646fee339f175e39 $ > Compression supported > SSL supported > > But if I now try to connect to the database, pypmyadmin tells me, that > mysql can't be found: Cannot load mysql extension. > > My one site tells me the same: > Fatal error: Call to undefined function mysql_error() in... > > netstat tells me, that mysql is waiting on 3306. > > Can someone gives me a hint? > > Thank you from Switzerland, Markus In your php.ini, there should be a line like this: extension=mysql.so or (better) this: extension=mysqli.so or this one: extension=pdo_mysql.so all depending on how you want to connect to MySQL