AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   [Fixed] Mysql cannot connect to local database (https://forums.alliedmods.net/showthread.php?t=255395)

xakintosh 01-14-2015 14:07

[Fixed] Mysql cannot connect to local database
 
2 Attachment(s)
Hello AM, Martin here.
I was put my server on hold for a while, but i start this year and i have problem with MySQL connection.

Spoiler

And here is Full log from main console:
Code:

Protocol version 48
Exe version 1.1.2.7 (cstrike)
Exe build: 13:13:28 Aug 29 2013 (6153)
couldn't exec language.cfg
Server IP address 188.254.188.225:27015
No IPX Support.
 
  Metamod version 1.21.1-am  Copyright (c) 2001-2013 Will Day <[email protected]>
  Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
  This is free software, and you are welcome to redistribute it
  under certain conditions; type `meta gpl' for details.
 

  AMX Mod X version 1.8.3-dev+4526 Copyright (c) 2004-2014 AMX Mod X Development Team
  AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'.
  This is free software and you are welcome to redistribute it under
  certain conditions; type 'amxx gpl' for details.
 
[WHB] Version: 1.5.370 Windows
[WHB] Success: Build HLDS version defined Windows "6153"
couldn't exec config.cfg
L 01/14/2015 - 09:08:35: [AMXX] Plugin file open error (plugin "csdm_off.amxx")
# Loaded 3 admins from file
[AMXX] executed.
# Error No.2003: Can't connect to MySQL server on 'localhost' (10061)
Connection to Steam servers successful.
  VAC secure mode is activated.
AMX Mod X 1.8.3-dev+4526 (http://www.amxmodx.org)
Authors:
        David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
        Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
        Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
        Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jan 14 2015 03:49:57
Built from: https://github.com/alliedmodders/amxmodx/commit/7f9d677Build ID: 4526:7f9d677Core mode: JIT+ASM32
Metamod v1.21.1-am  2013-09-26 (5:13)
by Will Day <[email protected]>
  http://www.metamod.org/
compiled: Sep 26 2013, 22:35:52  (msc optimized)
Currently loaded plugins:
      description      stat pend  file              vers      src  load  unlod
 [ 1] AMX Mod X        RUN  -    amxmodx_mm.dll    v1.8.3-d  ini  Start ANY 
 [ 2] WHBlocker        RUN  -    whblocker.dll    v1.5.370  ini  Chlvl ANY 
 [ 3] Admin Free Look  RUN  -    adminfreelook_am  v1.5.3    pl1  ANY  ANY 
 [ 4] FakeMeta        RUN  -    fakemeta_amxx.dl  v1.8.3-d  pl1  ANY  ANY 
 [ 5] Ham Sandwich    RUN  -    hamsandwich_amxx  v1.8.3-d  pl1  ANY  ANY 
 [ 6] CStrike          RUN  -    cstrike_amxx.dll  v1.8.3-d  pl1  ANY  ANY 
 [ 7] Engine          RUN  -    engine_amxx.dll  v1.8.3-d  pl1  ANY  ANY 
 [ 8] MySQL            RUN  -    mysql_amxx.dll    v1.8.3-d  pl1  ANY  ANY 
8 plugins, 8 running
Currently loaded modules:
      name                    version    author              status   
 [ 1] Admin Free Look        1.5.3      Arkshine            running   
 [ 2] FakeMeta                1.8.3-dev+  AMX Mod X Dev Team  running   
 [ 3] Ham Sandwich            1.8.3-dev+  AMX Mod X Dev Team  running   
 [ 4] CStrike                1.8.3-dev+  AMX Mod X Dev Team  running   
 [ 5] Engine                  1.8.3-dev+  AMX Mod X Dev Team  running   
 [ 6] RegEx                  1.8.3-dev+  AMX Mod X Dev Team  running   
 [ 7] MySQL                  1.8.3-dev+  AMX Mod X Dev Team  running   
 [ 8] Sockets                1.8.3-dev+  HLSW Dev Team        running   
8 modules, 8 correct
Currently loaded plugins:
      name                    version    author            file            status 
 [  1] Admins                  1.8.3-dev+  AMXX Dev Team    admins.amxx      running 
 [ 15] unknown                unknown    unknown          csdm_off.amxx    bad load
( 15) Load fails: Plugin file open error (plugin "csdm_off.amxx")
15 plugins, 14 running

Edit: Also tried with dbTuple code bellow
Spoiler

~Thanks for your help. - Sorry if thread is not in right place, but the issue appers only with hlds.exe (tested home/work pc's)
- Recompiled .sma's with latest 1.8.3-dev-git4526-base-windows
My plugins do not overlap, i just use one for db!

fysiks 01-14-2015 18:02

Re: [Problem] Mysql cannot connect to local database
 
Have you tried it with a default installation of the officially supported version of AMX Mod X (version 1.8.2)? (no 3rd party plugins, just all the default ones)

Arkshine 01-14-2015 19:20

Re: [Problem] Mysql cannot connect to local database
 
Are you sure you pass correct values in SQL_MakeDbTuple? Just check again in case.

xakintosh 01-14-2015 19:42

Re: [Problem] Mysql cannot connect to local database
 
1 Attachment(s)
~ I try with 1.8.2 result bellow. ~ no success that's rules out AmxmodX ~
~ Values are correct, changed pass and still..no connection.
Spoiler

~ To add i have all frameworks installed (atleast for xp) and i don't recive any errors and startup hlds.exe
~ I will try to search for alternative (uwamp,wamp) maybe i try xamp or something , meanwhile connection is still refused.

Arkshine 01-15-2015 04:52

Re: [Problem] Mysql cannot connect to local database
 
I'm asking if values are well retrieved from cvars and passed in SQL_MakeDbTuple.
For example, if you have SQL_MakeDbTuple(host,user,pass,db), I want you output host/user/pass/db with server_print() or log_amx(), to make sure you pass proper values.

xakintosh 01-15-2015 11:32

Re: [Problem] Mysql cannot connect to local database
 
1 Attachment(s)
Sorry for mine misunderstanding from 48hours i sleep only 8. Now let's continue.

I tested both SQL_MakeStdTuple and SQL_MakeDbTuple.

MakeStdTuple
Spoiler


MakeDbTuple
Spoiler

xakintosh 01-27-2015 18:15

Re: [Problem] Mysql cannot connect to local database
 
Clean reinstall of Windows seems to fixed it. (problem-clsed)
~btw maybe the new updates git4537 are helped too.
Thanks for the help.


All times are GMT -4. The time now is 10:51.

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