Never has this "SQLSTATE[HY000] [2002] Connection timed out" error before

Hi, I am new here. Anyone know what is “SQLSTATE[HY000] [2002] Connection timed out” ? I kept on getting this error and not knowing how to fix it. I am kinda getting frustrated about it :pensive::worried: and the web site i get “SQLSTATE[HY000] [2002] Connection timed out” error is from gogoanime.io its a web site where you can watch anime. Anyone can help me out? And also sorry if i put it on wrong category because i really don’t know what to select.

Hi vasto_form96 welcome to the forum

I’d have to google to know what “2002” indicates, but the “connection timed out” seems perfectly clear.

AFAIK you have two choices, either adjust your database settings to allow longer connection time, or make whatever query is taking too long more efficient.

IMHO, fixing the query would be the best approach. Please post the table schema and the problem query.

sorry but i don’t know anything about stuff like this… I don’t know what to open to get the table schema (I am just a dumb idiot)

Whatever table(s) you are SELECTing from, run a “SHOW” query. eg. with

SELECT fieldname, otherfieldname FROM thetable ....

the schema can be seen by running this query

SHOW CREATE TABLE thetable 

nevermind… i don’t know anything about computer system or computer stuff or how to check if my pc has gone crazy. All i know is how to open a Youtube to watch video only…(Which i am saying that i am just dumb idiot to the core…)

Well, if it is on someone else’s website where you’re getting that error, it is their error and has nothing to do with you. Nor is there anything you can really do about it other than hope they fix it or find a different site. Though I guess if you wanted to bother you could try contacting them and telling them about it. I would hope that site owners had something in place to let them know about problems, but I wouldn’t be the least bit surprised if they didn’t, especially since they didn’t take precautions to not show that error to visitors.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.