FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Invalid DB type
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Invalid DB type [message #39605 is a reply to message #39598] Sun, 11 November 2007 14:29 Go to previous messageGo to previous message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma:
Senior Member
The following extensions are loaded in php.ini
extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll

(Some guy installed the mysqli extension yesterday, was just mysql the other day, I tested the installer today again, still no show,)

PHP runs in ISAPI mode and not CGI mode, if that information can be of any use.

I can connect to the database without any problems using the following script:

<?php
/*
MySQL (Community) Server Installation on 32-bit Windows XP running Apache

On Windows, the recommended way to run MySQL is to install it as  a Windows service, whereby MySQL starts and stops automatically when  Windows starts and stops. A MySQL server installed as a service can  also be controlled from the command line commands, or with the graphical  Services utility like phpMyAdmin.

PHP ---> MySQL CONNECTORS (php_mysql.dll and php_mysqli.dll as extensions)
MySQL provides the mysql and mysqli extensions for the Windows operating  system on http://dev.mysql.com/downloads/connector/php/ for MySQL version 4.1.16 and higher, MySQL 5.0.18, and MySQL 5.1.  As with enabling any PHP extension in php.ini (such as php_mysql.dll),  the PHP directive extension_dir should be set to the directory where  the PHP extensions are located.

MySQL is no longer enabled by default, so the php_mysql.dll DLL must  be enabled inside of php.ini. Also, PHP needs access to the MySQL  client library. A file named libmysql.dll is included in the Windows  PHP distribution and in order for PHP to talk to MySQL this file  needs to be available to the Windows systems PATH.

Following PHP Script is useful to test PHP connection with MySQL.
*/

//$connect = mysql_connect("Your Host Name", "MySQL root directory",  'MySQL password, if any');
//$connect = mysql_connect("Host Name or Address - 127.0.0.1", "root",  'password');
$connect mysql_connect("localhost""root"'password');
if (
$connect){
echo 
"Congratulations!\n<br>";
echo 
"Successfully connected to MySQL database server.\n<br>";
}else{
$error mysql_error();
echo 
"Could not connect to the database. Error = $error.\n<br>";
exit();
}

// Closing connection
$close mysql_close($connect);
if (
$close){
echo 
"\n<br>";
echo 
"Now closing the connection...\n<br>";
echo 
"MySQL connection closed successfully as well.\n<br>";
}else{
echo 
"There's a problem in closing MySQL connection.\n<br>";
}
exit();
?>


[Updated on: Sun, 11 November 2007 14:42]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Upgrade Issue: Members List Blank
Next Topic: Lost Files
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 22:27:30 GMT 2024

Total time taken to generate the page: 0.05111 seconds