AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Database mysql (https://forums.alliedmods.net/showthread.php?t=327423)

MasterWindowS 09-18-2020 04:00

Database mysql
 
hello good, I'm having a problem with my databases.cfg

I installed a plugin and it throws this error on the console, does anyone know how to solve it please help me?

Code:

L 09/18/2020 - 04:53:45: [csgo_weaponstickers.smx] (WeaponStickers) Connection to database failed: [2003]: Can't connect to MySQL server on 'localhost' (10061)
(WeaponStickers) Reconnecting...

Code:

L 09/18/2020 - 05:04:38: [csgo_weaponstickers.smx] (WeaponStickers) Connection to database failed: [2003]: Can't connect to MySQL server on 'localhost' (10061)
L 09/18/2020 - 05:04:43: [csgo_weaponstickers.smx] (WeaponStickers) Reconnecting...

Code:

"csgo_weaponstickers"
    {
        "driver"            "mysql"
        "host"                "localhost"
        "database"            "mydb"
        "user"                "root"
        "pass"                ""
        //"timeout"            "0"
        "port"                "3306"
    }


Bacardi 09-18-2020 05:40

Re: Database mysql
 
plugin problems into plugin thread

freak.exe_uLow 09-18-2020 06:57

Re: Database mysql
 
Quote:

Originally Posted by MasterWindowS (Post 2718073)
hello good, I'm having a problem with my databases.cfg

I installed a plugin and it throws this error on the console, does anyone know how to solve it please help me?

Code:

L 09/18/2020 - 04:53:45: [csgo_weaponstickers.smx] (WeaponStickers) Connection to database failed: [2003]: Can't connect to MySQL server on 'localhost' (10061)
(WeaponStickers) Reconnecting...


do you host it on the same machine? try 127.0.0.1 and not localhost :3

Teamkiller324 09-19-2020 13:53

Re: Database mysql
 
isn't 127.0.0.1 and localhost the same?

freak.exe_uLow 09-19-2020 14:31

Re: Database mysql
 
Quote:

Originally Posted by Teamkiller324 (Post 2718210)
isn't 127.0.0.1 and localhost the same?

Yes it is, but sometimes it does not accept the entry localhost and you are forced to enter the IP :3

Hunter6272 09-20-2020 03:46

Re: Database mysql
 
Quote:

Originally Posted by MasterWindowS (Post 2718073)
hello good, I'm having a problem with my databases.cfg

I installed a plugin and it throws this error on the console, does anyone know how to solve it please help me?

Code:

L 09/18/2020 - 04:53:45: [csgo_weaponstickers.smx] (WeaponStickers) Connection to database failed: [2003]: Can't connect to MySQL server on 'localhost' (10061)
(WeaponStickers) Reconnecting...

Code:

L 09/18/2020 - 05:04:38: [csgo_weaponstickers.smx] (WeaponStickers) Connection to database failed: [2003]: Can't connect to MySQL server on 'localhost' (10061)
L 09/18/2020 - 05:04:43: [csgo_weaponstickers.smx] (WeaponStickers) Reconnecting...

Code:

"csgo_weaponstickers"
    {
        "driver"            "mysql"
        "host"                "localhost"
        "database"            "mydb"
        "user"                "root"
        "pass"                ""
        //"timeout"            "0"
        "port"                "3306"
    }


"user" "root" has no password? Set one and then try.

MasterWindowS 09-23-2020 13:51

Re: Database mysql
 
Thanks for the help, it works already: D


All times are GMT -4. The time now is 16:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.