do:

Code: 
vi /etc/my.cnf/
Then look for the lines that say
max_connections =
wait_timeout =
interactive_timeout =

then change the value of what they equal.

so for max_connections (>150)

find max_connections and change it to 150, if max_connections isn't there, add it like so:

max_connections = 300