
- PHP 5.2 OR HIGHERMYSQLI SUPPORTCURL LIBRARY DRIVER
- PHP 5.2 OR HIGHERMYSQLI SUPPORTCURL LIBRARY CODE
- PHP 5.2 OR HIGHERMYSQLI SUPPORTCURL LIBRARY PASSWORD
- PHP 5.2 OR HIGHERMYSQLI SUPPORTCURL LIBRARY ZIP
Just to be super clear, when I run this code:Īnd then run a query using mysql_query(), I get an error message like: It is on a cheap shared hosting account on. I don't have time to rewrite all the code, so it would be best to enable the old module. $dbc = (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) or die("Error ". $databaseChoosen = mysql_select_db($database)
PHP 5.2 OR HIGHERMYSQLI SUPPORTCURL LIBRARY CODE
To be clear, this code no longer works (no longer connects to the database):
PHP 5.2 OR HIGHERMYSQLI SUPPORTCURL LIBRARY DRIVER
PDO Driver for MySQL, client library version => 5.5.33 Mysqli.max_links => Unlimited => Unlimited MYSQLI_SOCKET => /var/lib/mysql/mysql.sock Mysql.max_persistent => Unlimited => Unlimited Mysql.max_links => Unlimited => Unlimited MYSQL_SOCKET => /var/lib/mysql/mysql.sock Registered Stream Filters => zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
PHP 5.2 OR HIGHERMYSQLI SUPPORTCURL LIBRARY ZIP
Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, data, http, ftp, zip Loaded Configuration File => /usr/local/lib/php.ini

With Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend TechnologiesĬhecking via phpinfo() via browser confirms browser also sees PHP PHP Version 5.2.17.Īnd if I run "php -i" and search through for it any mention of mysql, I see:Ĭonfigure Command => './configure' '-disable-cgi' '-enable-bcmath' '-enable-calendar' '-enable-dbase' '-enable-exif' '-enable-fastcgi' '-enable-ftp' '-enable-gd-native-ttf' '-enable-libxml' '-enable-magic-quotes' '-enable-mbstring' '-enable-pdo=shared' '-enable-soap' '-enable-sockets' '-enable-sqlite-utf8' '-enable-wddx' '-enable-zip' '-prefix=/usr/local' '-with-bz2' '-with-curl=/opt/curlssl/' '-with-freetype-dir=/usr' '-with-gd' '-with-gettext' '-with-imap=/opt/php_with_imap_client/' '-with-imap-ssl=/opt/openssl' '-with-jpeg-dir=/usr' '-with-kerberos' '-with-libdir=lib64' '-with-libexpat-dir=/usr' '-with-libxml-dir=/opt/xml2' '-with-libxml-dir=/opt/xml2/' '-with-mcrypt=/opt/libmcrypt/' '-with-mhash=/opt/mhash/' '-with-mime-magic' '-with-mssql=/usr' '-with-mysql=/usr' '-with-mysql-sock=/var/lib/mysql/mysql.sock' '-with-mysqli=/usr/bin/mysql_config' '-with-openssl=/opt/openssl' '-with-openssl-dir=/opt/openssl' '-with-pcre-regex=/opt/pcre' '-with-pdo-mysql=shared' '-with-pdo-sqlite=shared' '-with-pic' '-with-png-dir=/usr' '-with-pspell' '-with-sqlite=shared' '-with-tidy=/opt/tidy/' '-with-ttf' '-with-unixODBC=/usr' '-with-xmlrpc' '-with-xpm-dir=/usr' '-with-xsl=/opt/xslt/' '-with-zlib' '-with-zlib-dir=/usr'Ĭonfiguration File (php.ini) Path => /usr/local/lib With the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd., and Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
PHP 5.2 OR HIGHERMYSQLI SUPPORTCURL LIBRARY PASSWORD
The exact same host, database, user and password is working for the code that uses mysqli, but not mysql. Which makes me think the old myql module is installed but for some reason not working. $dbh = mysql_connect($hostname, $username, $password) Īccess denied for user (using password: YES) Rather than re-write all of the code to use mysqli, I am wondering what the quickest way would be to get the old mysql module working? But there is a vast amount of code in the old format, using these functions: The other code on the site, which was written for the new server, uses mysqli and seems to working. As near as I can see, the old MySql module for PHP is not working. However, the new site sits on a new server, where things are differently configured. Now the code had to move and be mixed in with another website, also running PHP. The site is written in PHP and uses Mysql as the database. I took over an old code base and have tried to fix it.


This is a PHP question, not a WordPress question, but I could use an answer quickly.
