PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
PHP page giving database connection error
PHP page giving database connection error
Started by Temi, May, 11 2010 11:40 AM - 1 reply
Connect yourself…
Temi
#1
Posted on May, 11 2010 - 11:40 AM
Hello. I'm new to webdev but I'm building a PHP application with version 14. I have set the connection, it tests well, created a query and selected columns from my mysql table, and I'm sure there is data in that table. I created a test page with a table linked to the query but the problem is when I click on "Run the test with the default browser" it gives me this error:
Error running the test.php page.
The connection to the <temi> database on <localhost> failed. Message returned by the database: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
In WebDev the connection works fine and when I click test its successful, so how is the connection wrong on runtime?
Thanks
Note: I have other non-webdev PHP applications that are connecting to the database perfectly with the same parameters.
Report
0
0
Temi
#2
Posted on May, 12 2010 - 1:05 AM
Never mind, I forgot the trailing slash in the httpd.conf site config, working perfectly now!
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text