Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7369
| Date | 2012-10-28 17:51 +0100 |
|---|---|
| From | Luuk <luuk@invalid.lan> |
| Newsgroups | comp.lang.php |
| Subject | Re: cant use mysql_connect |
| References | <k6jmij$jt1$1@dont-email.me> |
| Message-ID | <ed40m9-pjb.ln1@luuk.invalid.lan> (permalink) |
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
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
cant use mysql_connect Markus Grob <snoopy@ilnet.ch> - 2012-10-28 17:30 +0100
Re: cant use mysql_connect "J.O. Aho" <user@example.net> - 2012-10-28 17:44 +0100
Re: cant use mysql_connect Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-29 04:16 +0100
Re: cant use mysql_connect "J.O. Aho" <user@example.net> - 2012-10-29 07:34 +0100
Re: cant use mysql_connect Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-29 14:23 +0100
Re: cant use mysql_connect The Natural Philosopher <tnp@invalid.invalid> - 2012-10-29 11:24 +0000
Re: cant use mysql_connect Luuk <luuk@invalid.lan> - 2012-10-28 17:51 +0100
Re: cant use mysql_connect Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-28 20:21 +0100
Re: cant use mysql_connect "J.O. Aho" <user@example.net> - 2012-10-29 07:39 +0100
Re: cant use mysql_connect Markus Grob <snoopy@ilnet.ch> - 2012-10-30 22:58 +0100
Re: cant use mysql_connect Jerry Stuckle <jstucklex@attglobal.net> - 2012-10-30 19:18 -0400
Re: cant use mysql_connect "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-10-31 10:07 +0100
Re: cant use mysql_connect "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-10-31 10:15 +0100
Re: cant use mysql_connect Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-11-01 00:56 +0100
csiph-web