geiri Posted October 16, 2007 Share Posted October 16, 2007 after a server chras I get a lot of thes errors mysql_connect(): Can't connect to MySQL server on 'localhost' (10048) It is enough to hit reload and the page shows. The service is runing and everthing looks ok.. I have tried to uninstall the MYSQL server and reinstall it but no luck. I have allso gone throug the MY.cnf file and other files. Server is windows 2003 Apache, mysql 4.0.25 I could use some help Quote Link to comment https://forums.phpfreaks.com/topic/73508-mysql_connect-cant-connect-to-mysql-server-on-localhost-10048/ Share on other sites More sharing options...
fenway Posted October 16, 2007 Share Posted October 16, 2007 Have you read through the sticky? Quote Link to comment https://forums.phpfreaks.com/topic/73508-mysql_connect-cant-connect-to-mysql-server-on-localhost-10048/#findComment-370838 Share on other sites More sharing options...
geiri Posted October 16, 2007 Author Share Posted October 16, 2007 I did read your sticky on php5 I was runing php 3.7 So I upgraded to php 5.2.4 altered the config and restarted the server now. The server restarted fine. But now I get this error. 500 Internal Server Error I am new to this and my understanding is not deep. Englis is not my lang so I am sorry if I am missing somthing :-\ Quote Link to comment https://forums.phpfreaks.com/topic/73508-mysql_connect-cant-connect-to-mysql-server-on-localhost-10048/#findComment-370885 Share on other sites More sharing options...
geiri Posted October 17, 2007 Author Share Posted October 17, 2007 I think my mysql is working just fine.. can this have somthing to do with the port? or slow responce time of the mysql? (witch is not slow when it works) Quote Link to comment https://forums.phpfreaks.com/topic/73508-mysql_connect-cant-connect-to-mysql-server-on-localhost-10048/#findComment-371452 Share on other sites More sharing options...
fenway Posted October 17, 2007 Share Posted October 17, 2007 Internal server error is likely from missing headers; something to do with the script itself, not mysql. Quote Link to comment https://forums.phpfreaks.com/topic/73508-mysql_connect-cant-connect-to-mysql-server-on-localhost-10048/#findComment-371539 Share on other sites More sharing options...
geiri Posted October 18, 2007 Author Share Posted October 18, 2007 I removed Apache, mysql and php. And installed again. Apache 2.2.4 PHP 5.2.4 MySQL 5.0.45 Server works fine but still some times I get an error like connection to db can not be made? Database error The database has encountered a problem. It is allways enoug to reload the page. Can some one help find out what can be the problem please Quote Link to comment https://forums.phpfreaks.com/topic/73508-mysql_connect-cant-connect-to-mysql-server-on-localhost-10048/#findComment-372250 Share on other sites More sharing options...
fenway Posted October 19, 2007 Share Posted October 19, 2007 What is producing that error text? Quote Link to comment https://forums.phpfreaks.com/topic/73508-mysql_connect-cant-connect-to-mysql-server-on-localhost-10048/#findComment-373131 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.