jonnykewell1 Posted February 11, 2011 Posted February 11, 2011 Hi guys trying to move a system called OPT which is used in school onto our server from another Host. We are using IIS 7 to try and run this and the error i get when typing in the web address is the following. Just wondered it anyone could help with this as im a PHP noob. Cheers Fatal error: Uncaught exception 'Exception' with message 'SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'localhost' (10061)' in C:\inetpub\wwwroot\opt\opt\config.php:41 Stack trace: #0 C:\inetpub\wwwroot\opt\opt\includes\check_login.php(3): require_once() #1 C:\inetpub\wwwroot\opt\opt\includes\header.php(2): require_once('C:\inetpub\wwwr...') #2 C:\inetpub\wwwroot\opt\opt\index.php(3): require_once('C:\inetpub\wwwr...') #3 {main} thrown in C:\inetpub\wwwroot\opt\opt\config.php on line 41
webman Posted February 11, 2011 Posted February 11, 2011 Looks like it can't connect to the MySQL database that it expects to be running on that server. Obvious things to check: MySQL is installed MySQL is running The appropriate username and password has been created The OPT database exists The necessary details are probably in the C:\inetpub\wwwroot\opt\opt\config.php file for you to check.
contink Posted February 11, 2011 Posted February 11, 2011 Looks like your MySQL database is either not up and running or the login details are incorrect and the PHP script can't access it. *pipped at the post*
CESIL Posted February 11, 2011 Posted February 11, 2011 I was going to reply to this but it seems it's a post from the future it was started at 12:44pm today and here it's still only 11:55am
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now