To many connections?

I have a mysql database on a dedicated server and are using it for a smartphone game to handle my data. The thing is that it is getting quite popular and I have many requests on the the database so sometimes it comes with a “To many connections”? How should i handle this? I use mysql_close(); on every php page I use, but still got the problem…

Please help and thanks in advance :slight_smile:

Are you setting up mysql_connect() or mysql_pconnect() ?

In any case you should consider migrating over to using either PDO or the mysqli extension

Using mysql_connect(). Is it easy to migrate and why is that a good idea?