SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = forge and table_name = migrations)

**My website URL is:http://small.link

**What I’m seeing is:*I am trying to install a code canyon script (belink - a URL shortening service) I have created a MySQL DB and updated the .env file to be my domain but I am still getting this error at the last installation step: SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = forge and table_name = migrations)

My MySQL DB seems to have no tables in it. Do I need to create a migrations table or should this be created automatically? *

**I’m using this software:InfinityFree free hosting. BeLink Code Canyon Script

Everything else in the installation process is working smoothly. I am able to connect to the database with my credentials. It just is throwing up this last minute error.

1 Like

I think that disconnected while executing the sql commend. That happens some times… probably server hiccups or invalid connection data.

Or probably no, The installation will create tables, But due the Connection Refused that cannot do it. You’ve to install it in another time or try multiple times, Also depending on what data do you connect to DB with.

2 Likes