Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail From: "M. Strobel" Newsgroups: comp.lang.php Subject: Re: cant use mysql_connect Date: Wed, 31 Oct 2012 10:07:57 +0100 Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de mzx0fOmBCT+LQ8MT1NJq4wwwZ/nN9Kd0cywjrpYGQ3jSgc/WFvDa92ij1Q9egLHbY= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 In-Reply-To: Xref: csiph.com comp.lang.php:7405 Am 30.10.2012 22:58, schrieb Markus Grob: > Markus Grob wrote: > >> But if I now try to connect to the database, pypmyadmin tells me, that >> mysql can't be found: Cannot load mysql extension. > > I have read all the postings and now, I don't know, what I should do. I can rewrite > my code, to use the mysqlnd locally, but I don't know, if normal webservers could use > the new code. Will this normally be? How can I find it out? > Trying to sum up the driver thing, see http://www.php.net/manual/en/mysqli.overview.php * mysql is an old driver and old API, not recommended * mysqli is the newer API, with the same design as mysql. Can use mysqlnd * PDO is the unified and object oriented API. Can use mysqlnd, recommended * mysqlnd is not an API, only a driver lib So your programmer's choice is between mysqli and PDO. A webspace provider only offering the mysql API should not exist anymore.