in your php.ini
find the line that says
;extension=php_mysql.dll
if there's a ; in front of the line, remove it
and put the dll in your extensions directory
same with libmysql.dll
[[this is what i do on windows, probably differs on linux]]
Linking php and mysql
Moderator: General Moderators
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
what do you mean?and put the dll in your extensions directory
Heres what my extensions look like:
Code: Select all
;extension=php_mbstring.dll
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
;extension=php_curl.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_domxml.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_printer.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_sockets.dll
;extension=php_sybase_ct.dll
;extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
;extension=php_zip.dll
;extension=php_mysql.dll
;extension=php_mysqli.dllWorst case scenario all you have to do is compile PHP, just download the source from http://www.php.net and read the docs...
are you running php5?Cheeseboy wrote:The only reason i asked how to link them is best i get this error on phpbb:and people tell me that there not linked properly. How can i fix this error its driving me crazy!The PHP configuration on your server doesn't support the database type that you choseis there some kind of file like php.ini and httpd for mysql?
taken from http://us2.php.net/mysql
PHP 5+
MySQL is not enabled by default, nor is the MySQL library bundled with PHP. Read this FAQ for details on why. Use the --with-mysql[=DIR] configure option to include MySQL support. You can download headers and libraries from MySQL.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.