Tag

MySQL

· Asif Mughal

SQLSTATE[HY000] [2002] Connection Refused in Laravel and Docker

This error means your Laravel app could not reach the database at all. It is almost always one of two causes: a wrong DB_HOST, or your app starting before MySQL is actually ready inside Docker. Here is how to tell which one you have, and the real fix for each.

· Asif Mughal

ERROR 1040 (HY000): Too Many Connections

This error means MySQL has run out of connection slots. Here is the quick fix, the permanent fix, and the RAM math you should do first if you run MySQL on a small VPS, before you just raise the number.