Raised This Month: $32 Target: $400
 8% 

[Fixed] Mysql cannot connect to local database


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xakintosh
I run no-steam servers!
Join Date: Feb 2010
Location: Edge of nowhere
Old 01-14-2015 , 14:07   [Fixed] Mysql cannot connect to local database
Reply With Quote #1

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!
Attached Thumbnails
Click image for larger version

Name:	s.png
Views:	453
Size:	1.9 KB
ID:	141559   Click image for larger version

Name:	s1.png
Views:	339
Size:	3.3 KB
ID:	141560  
__________________
As soon as possible.

Last edited by xakintosh; 01-28-2015 at 00:29.
xakintosh is offline
Send a message via Yahoo to xakintosh Send a message via Skype™ to xakintosh
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-14-2015 , 18:02   Re: [Problem] Mysql cannot connect to local database
Reply With Quote #2

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)
__________________

Last edited by fysiks; 01-14-2015 at 18:03.
fysiks is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-14-2015 , 19:20   Re: [Problem] Mysql cannot connect to local database
Reply With Quote #3

Are you sure you pass correct values in SQL_MakeDbTuple? Just check again in case.
__________________
Arkshine is offline
xakintosh
I run no-steam servers!
Join Date: Feb 2010
Location: Edge of nowhere
Old 01-14-2015 , 19:42   Re: [Problem] Mysql cannot connect to local database
Reply With Quote #4

~ 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.
Attached Images
File Type: jpg frameworks.jpg (74.9 KB, 353 views)
__________________
As soon as possible.

Last edited by xakintosh; 01-14-2015 at 19:59.
xakintosh is offline
Send a message via Yahoo to xakintosh Send a message via Skype™ to xakintosh
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-15-2015 , 04:52   Re: [Problem] Mysql cannot connect to local database
Reply With Quote #5

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.
__________________
Arkshine is offline
xakintosh
I run no-steam servers!
Join Date: Feb 2010
Location: Edge of nowhere
Old 01-15-2015 , 11:32   Re: [Problem] Mysql cannot connect to local database
Reply With Quote #6

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
Attached Thumbnails
Click image for larger version

Name:	s.png
Views:	459
Size:	9.1 KB
ID:	141581  
__________________
As soon as possible.

Last edited by xakintosh; 01-27-2015 at 18:19.
xakintosh is offline
Send a message via Yahoo to xakintosh Send a message via Skype™ to xakintosh
Old 01-15-2015, 13:03
Neeeeeeeeeel.-
This message has been deleted by Neeeeeeeeeel.-. Reason: nvm, I didn't see the code after SQLMakeDbTuple
xakintosh
I run no-steam servers!
Join Date: Feb 2010
Location: Edge of nowhere
Old 01-27-2015 , 18:15   Re: [Problem] Mysql cannot connect to local database
Reply With Quote #7

Clean reinstall of Windows seems to fixed it. (problem-clsed)
~btw maybe the new updates git4537 are helped too.
Thanks for the help.
__________________
As soon as possible.
xakintosh is offline
Send a message via Yahoo to xakintosh Send a message via Skype™ to xakintosh
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:26.


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