Jump to content

mysql_connect(): Can't connect to MySQL server on 'localhost' (10048)


Recommended Posts

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 ;)

 

 

 

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  :-\

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  ::)

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.