We could not connect to the database you specified.

We could not connect to the database you specified.

by Charles Levasseur -
Number of replies: 1

I am running moodle on a Windows 2000 server running IIS.  PHP is installed and working great and MySQL seems to work with other applications.  When I run the install.php, I get the message that moodle can't connect to the database.

Here is the screen where this is happening.  My database and user account was created and I addedd all privilege to the user.  What am I missing?

Type: mysql or postgres7
Host: eg localhost or db.isp.com
Name: database name, eg moodle
User: your database username
Password: your database password
Tables Prefix: optional prefix to use for all table names

We could not connect to the database you specified. Please check your database settings.

 

Type

mysql postgres7

Host Server

Database

User

Password

Tables prefix

 

After searching for answers, I have seen many people with the same problems, but I did not see any solutions posted yet.  Please help.

Average of ratings: -
In reply to Charles Levasseur

Re: We could not connect to the database you specified.

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Charles,

Please check Zbigniew's could not connect to the database FAQ (simply follow the highlighted link), in particular point 4 regarding using MySQL version 4.1 or higher with PHP version 4.x.x.