WampServer
Apache, PHP, MySQL on Windows
Home forum
Back to WampServer
presentation
Downloads
Addons
Trainings
Alter Way
Go to Topic:
Previous
•
Next
Go to:
Forum List
•
Message List
•
New Topic
•
Search
•
Log In
•
Print View
Can't connect to MySQL
Posted by:
Hatem
(202.185.109.---)
Date: November 28, 2006 07:57AM
Hi guys,
wish someone can help me in my problem
I just installed wamp5 v1.6.6.....the problem that i can't connect to mysql.
each time i try to test the connection i got this message:
>>>>>>>>> Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\connection_test\_debug_tmp.php on line 2
my code for testing the connection is:
<?php
$connection = mysql_connect('localhost', 'root', 'pass')
or die ('Unable to connect');
?>
looking for help
Options:
Reply
•
Quote
Re: Can't connect to MySQL
Posted by:
yfastud
(---.cable.mindspring.com)
Date: November 28, 2006 12:38PM
i'm using mysql_
p
connect instead and it work fine as seen here
[
test.jlbn.com
]
[
mail.jlbn.com
]
[
forum.jlbn.com
]
[
ftp.jlbn.com
]
[
jlbn.com
]
[
jlbn.com
]
Options:
Reply
•
Quote
Re: Can't connect to MySQL
Posted by:
Psychopsia
(---.unis.edu.gt)
Date: November 28, 2006 04:22PM
Hi Hatem!
Try enabling the MySQL extension in 'PHP settings' > 'PHP extensions' > php_mysql.
But it should be done when you installed wamp, try it.
Options:
Reply
•
Quote
Re: Can't connect to MySQL
Posted by:
Hatem
(202.185.109.---)
Date: December 04, 2006 09:44AM
first of all... thx 4 ur advice.....
My friend, i tried the way u told me about .... but unfortunately couldn't work!
i just wanna ask should i do anything after install wamp5 to my pc???????
Options:
Reply
•
Quote
Re: Can't connect to MySQL
Posted by:
yfastud
(---.cable.mindspring.com)
Date: December 04, 2006 11:30PM
the question is how did you setup password, check my old post here
[
forum.wampserver.com
]
Options:
Reply
•
Quote
Go to:
Forum List
•
Message List
•
Search
•
Log In
Sorry, only registered users may post in this forum.
Click here to login