Help using MySql on windows server 2003

This is a discussion on "Help using MySql on windows server 2003" within the Databases section. This forum, and the thread "Help using MySql on windows server 2003 are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Databases

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 21st, 2006, 18:12
Junior Member
Join Date: Jul 2006
Location: Canton, OH
Age: 37
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TheThrock
Help using MySql on windows server 2003

Hi,
I have MySql installed on windows server 2003 and put all the required db information in my php configuration file. When I attempt to login on one particular web page It is suppose to hit the database and pass my username and password to wherever then move to the next page being logged in.

Instead I get this error:
Can't open MySQL! Please make sure you have your MySQL Login, Database and Host information set correctly in the "config.cgi" file before running this script! If you are not sure of your MySQL information contact your webhost to obtain it. You CANNOT use any of these safelist scripts unless you have MySQL running correctly on your site and know your MySQL login information.

I think that either php or MySql may be configured wrong on the server. Can someone help me on getting it set up the right way?

I do not have a config.cgi file but I do have a config.php file.


Thank-you,
Eric
Reply With Quote

  #2 (permalink)  
Old Aug 16th, 2006, 00:03
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,281
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Help using MySql on windows server 2003

config.php is right - its basically saying that you have entered the wrong information - database name etc, so, if there is no install screen with whatever it is you are trying to install, you need to go to config.php and enter the information directly
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)

Last edited by saltedm8; Aug 16th, 2006 at 00:13.
Reply With Quote
  #3 (permalink)  
Old Aug 28th, 2006, 03:31
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
Re: Help using MySql on windows server 2003

Can you post the contents of your config.php file for us? (Obviously remove any passwords.)
Reply With Quote
  #4 (permalink)  
Old Aug 28th, 2006, 18:21
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,734
Blog Entries: 1
Thanks: 0
Thanked 16 Times in 16 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Help using MySql on windows server 2003

Basically a config.php should look something like this.

Code: Select all
<?php
$foo_db = 'db_name'
$foo_user = 'user_ID';
$foo_password = 'password';
$foo_host = 'db_host';
?>
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #5 (permalink)  
Old Aug 28th, 2006, 18:39
Junior Member
Join Date: Jul 2006
Location: Canton, OH
Age: 37
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TheThrock
Re: Help using MySql on windows server 2003

# MySQL (Database) Information
$sql_db_name = "";
$sql_user = "";
$sql_pass = "";
$sql_hostname ="localhost";
$sql_port ="3306";


thats what it looks like...
Reply With Quote
  #6 (permalink)  
Old Aug 28th, 2006, 23:57
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
Re: Help using MySql on windows server 2003

And in the real copy, the db_name, user and password variables are set? You've only cleared them because you were posting them up here right?
Reply With Quote
  #7 (permalink)  
Old Aug 29th, 2006, 17:48
Junior Member
Join Date: Jul 2006
Location: Canton, OH
Age: 37
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TheThrock
Re: Help using MySql on windows server 2003

thats exactly right.
Reply With Quote
  #8 (permalink)  
Old Aug 29th, 2006, 17:54
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,734
Blog Entries: 1
Thanks: 0
Thanked 16 Times in 16 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Help using MySql on windows server 2003

I think config.cgi is a component of MySQL itself. I have only run MySQL on Linux and under Mac OS X so I am not entirely sure under windows.

Not sure what version of MySQL you have but maybe this will help you.

http://dev.mysql.com/doc/refman/5.1/en/windows-troubleshooting.html
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Aug 29th, 2006 at 17:58.
Reply With Quote
Reply

Tags
help, using, mysql, windows, server, 2003

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
windows or linux server??? Gerry Webforumz Cafe 11 Mar 30th, 2008 23:09
301 redirect on windows server (not asp)? modernape Classic ASP 10 Mar 25th, 2008 11:38
[Solved]Sending Mail In PHP With vBulletin on Windows 2003 Server Sleaklight Hosting & Domains 4 Mar 16th, 2008 17:28
Quality UK Windows/SQL Server hosting required D3mon Hosting & Domains 8 Aug 19th, 2005 19:22


All times are GMT. The time now is 06:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43