Redcircle wrote:have you started the mysql service or installed the service
go into the mysql/bin dir and type: mysqld -install
then go into your services and start the service.
mysql is installed by default you shouldn't be having a problem.
I also have this problem
Here's the extensions part of my version of php.ini
;Windows Extensions
;Note that ODBC support is built in, so no dll is needed for it.
;
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.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_mbstring.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_mysql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_sockets.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_yaz.dll
;extension=php_zip.dll
I have mysql version 4.1.7 which is running as a service, PHP 5.0.3, windows 2000 sp4
In response to the snippet included by Dabear
<?php
error_reporting(E_ALL);
print_r(get_declared_classes());
$mysqli = new mysqli('localhost', 'root', '***', 'directory');
?>
I get. .
Array ( [0] => stdClass [1] => Exception [2] => ReflectionException [3] => Reflection [4] => ReflectionFunction [5] => ReflectionParameter [6] => ReflectionMethod [7] => ReflectionClass [8] => ReflectionObject [9] => ReflectionProperty [10] => ReflectionExtension [11] => COMPersistHelper [12] => com_exception [13] => com_safearray_proxy [14] => variant [15] => com [16] => dotnet [17] => RecursiveIteratorIterator [18] => FilterIterator [19] => ParentIterator [20] => LimitIterator [21] => CachingIterator [22] => CachingRecursiveIterator [23] => ArrayObject [24] => ArrayIterator [25] => DirectoryIterator [26] => RecursiveDirectoryIterator [27] => SQLiteDatabase [28] => SQLiteResult [29] => SQLiteUnbuffered [30] => SQLiteException [31] => __PHP_Incomplete_Class [32] => php_user_filter [33] => Directory [34] => DOMException [35] => DOMStringList [36] => DOMNameList [37] => DOMImplementationList [38] => DOMImplementationSource [39] => DOMImplementation [40] => DOMNode [41] => DOMNameSpaceNode [42] => DOMDocumentFragment [43] => DOMDocument [44] => DOMNodeList [45] => DOMNamedNodeMap [46] => DOMCharacterData [47] => DOMAttr [48] => DOMElement [49] => DOMText [50] => DOMComment [51] => DOMTypeinfo [52] => DOMUserDataHandler [53] => DOMDomError [54] => DOMErrorHandler [55] => DOMLocator [56] => DOMConfiguration [57] => DOMCdataSection [58] => DOMDocumentType [59] => DOMNotation [60] => DOMEntity [61] => DOMEntityReference [62] => DOMProcessingInstruction [63] => DOMStringExtend [64] => DOMXPath [65] => SimpleXMLElement [66] => SimpleXMLIterator )
Fatal error: Class 'mysqli' not found in C:\websites\webpages\directory\connect.php on line 16
Any help would be gratefully received