We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
WAMP Server Help?; Not working...
Topic Started: Nov 18 2005, 09:27 PM (248 Views)
SmartSquid399
Member Avatar
Member
[ *  *  * ]
All right, so I'm trying to make a server on my computer (Windows XP, Service Pack 2) and MySQL isn't working right now...I need to know why. I'm going to be as specific as I can, so my mistake can be spotted easily.

Ok, so I installed Apache 2.0.54, it worked fine. Then I installed PHP 5. I unzipped the package into te directory, then added the following to httpd.conf to make it work:
Code:
 
LoadModule php5_module "C:/Program Files/PHP/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/Program Files/PHP"
It worked fine. Then I installed MySQL...now here's where the problem is...so I ran Setup.exe, installed it to the default directory, and configured it with the Instance Config Wizard. I didn't know what to do next, so I looked up a couple tutorials. I did as they said and copied my-medium.ini, renamed it to my.cnf, and put it in C:/WINDOWS. Then I made a new file, named my.ini, put it in the same place, and put the following in it:
Code:
 
# MySQL my.ini config file
[WinMySQLAdmin]
Server=C:/Program Files/MySQL/MySQL Server 5.0/bin/mysqld-opt.exe
user=root
password=(not telling :P)

[mysqld]
basedir=C:/Program Files/MySQL/MySQL Server 5.0/
datadir=C:/Program Files/MySQL/MySQL Server 5.0/data/
#bind-address=10.10.10.55
#language=C:/Program Files/mysql/share/your language directory
#slow query log#=
#tmpdir#=
#port=3306
#key_buffer=16M
Now, the tutorial said it should work, so I decided to try it out by trying to install a phpBB forum on the server. However, when I filled out the forms, it gave me this:
Code:
 
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061) in C:\Program Files\Apache Group\Apache2\htdocs\forums\db\mysql4.php on line 48

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in C:\Program Files\Apache Group\Apache2\htdocs\forums\db\mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in C:\Program Files\Apache Group\Apache2\htdocs\forums\db\mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database


I'm not at all sure what's going on, so can anyone help? Did I miss a step? Thanks in advance!


PS: Please do not tell me to use Linux, because I would never use that excuse for an operating system unless my life depened on it.
Offline Profile Quote Post Goto Top
 
Surferdude
Critic
[ *  *  *  *  *  *  * ]
www.wampserver.com/en ;)

Be sure to uninstall anything you tried to installl before you try installing WAMPserver.
Offline Profile Quote Post Goto Top
 
SmartSquid399
Member Avatar
Member
[ *  *  * ]
Surferdude18213
Nov 19 2005, 08:14 AM
www.wampserver.com/en ;)

Be sure to uninstall anything you tried to installl before you try installing WAMPserver.

I'm only using that thing as a last resort, last time I used it, it totally screwed up MySQL, said that a file was corrupt or something...

Anyway, can anyone help? If no one can then I guess I'll use that program... <_<
Offline Profile Quote Post Goto Top
 
Surferdude
Critic
[ *  *  *  *  *  *  * ]
Use that. Trust me, I tried exactly what you are trying to do and wasted hours and hours when WAMPserver does it in miniutes.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply