No connection could be made because the target machine actively refused it.


  • | 2114 points

    Laragon full version 3.2.3

    Hi,

    I tried to access the web application I'm developing with Laravel and the following error message : No connection could be made because the target machine actively refused it.

    No clue why, it was working well the day before.
    env. file DB connection to adminer is correct :
    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=crudbooster
    DB_USERNAME=root
    DB_PASSWORD=

    I can also not access the adminer database:

    0_1542102896841_upload-e2b2a553-9ba7-4c6d-96c6-c57289bec92a

    Do someone know how I can fix this ?

    Thanks in advance for your support.

    Cheers, Marc

    UPDATE

    Update,
    Adminer database access work again, but when I try to login to my backend dashboard i've got the following error :

    SQLSTATE[HY000]: General error: 1812 Tablespace is missing for table


  • administrators
    | 123538 points

    @marcq : Is there any error in your MySQL log file?
    If you can not fix from log, you can:

    • Rename C:\laragon\data.bak
    • Start MySQL - Laragon will re-create a fresh data dir for you.
    • Run you migrate code

  • | 2114 points

    @leokhoa thanks a lot for your reply|support, I was lucky to have a clean dump of my db. I also wanted to change from adminer to phpmyadmin so it was the right moment to do it. I have imported the dump into phpmyadmin and now it is working as it should. Thanks again, cheers.


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.