Enabling MySQL in PHP
Moderator: General Moderators
Enabling MySQL in PHP
While configuring phpBB, the install tool told me that MySQL isn't enabled in PHP. I've spent the better part of today installing Perl, PHP, and Python on my new Apache2 server and I guess I just kind of thought that PHP had mysql enabled out-of-the-box. So, what do I add to php.ini (if that's what I do at all) to "enable" mysql in php?
Well, all the knowledge I have on the subject is uncommenting items from that list of extensions in php.ini
A comment in php.ini tells me "Note that MySQL and ODBC support is now built in, so no dll is needed for it."
So... how do I enable it? Is it a special switch somewhere?
And yes, I have all the most updated software (everything was redownloaded and reinstalled this afternoon).
A comment in php.ini tells me "Note that MySQL and ODBC support is now built in, so no dll is needed for it."
So... how do I enable it? Is it a special switch somewhere?
And yes, I have all the most updated software (everything was redownloaded and reinstalled this afternoon).
currently i'm using php5.0.3 and i could nowhere find such a thing on mysql being built in in the php.ini-dist and php.ini-recommended.
the only thing i found, in install.txt (can't find README.txt)
The following means you should add a directory to your path where it can find libmysql.dll (%mysql%\bin)
the only thing i found, in install.txt (can't find README.txt)
in snapshot.txt i can't find it eitherNote: In PHP 4.3.1 BCMath, Calendar, COM, Ctype, FTP, MySQL, ODBC,
Overload, PCRE, Session, Tokenizer, WDDX, XML and Zlib support is
built in. You don't need to load any additional extensions in order
to use these functions. See your distributions README.txt or
install.txt or this table for a list of built in modules.
Built-in Extensions
===========================
bcmath
calendar
com_dotnet
ctype
ftp
iconv
odbc
pcre
session
SPL
SQLite
standard
tokenizer
zlib
libxml
dom
SimpleXML
wddx
xml
The following means you should add a directory to your path where it can find libmysql.dll (%mysql%\bin)
Module: php_mysql.dll
===========================
libmysql.dll
Module: php_mysqli.dll
===========================
libmysql.dll
I got it working (finally) by copying php_mysql.dll and php_mysqli.dll (i downloaded them) to c:\windows and c:\windows\system32, as well as the apache ext folder and adding my own extension=php_mysql.dll lines in php.ini... and it seems to be working ok. However, the phpbb installation still hangs. It says that it took 30 seconds to process a mysql line.