Raised This Month: $ Target: $400
 0% 

Server and mysql no connection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Simca
Senior Member
Join Date: Feb 2012
Old 08-08-2014 , 06:34   Server and mysql no connection
Reply With Quote #1

I tried banning myself and I could get in the server. I tried banning ingame and it's not passing onto the database, not seeing it in webpanel. Also I set up server admin access in webpanel but I don't get admin in server. I have portforwarded mysql 3306 to the internal server ip. The webpanel is showing my servers. Have all 3 plugins loaded.

My sourcebans.cfg is using the same external server ip same as database. I didn't add port after server ip.
Code:
"Databases"
{
	"driver_default"		"mysql"
	
	"sourcebans"
	{
		"driver"		"mysql"
		"host"			"my external server ip"	
		"database"		"sourcebans"	
		"user"			"root"		
		"pass"			"root password"	// The password for this user
	}
	
	
	"default"
	{
		"driver"			"default"
		"host"				"localhost"
		"database"			"sourcemod"
		"user"				"root"
		"pass"				""
		//"timeout"			"0"
		//"port"			"0"
	}
	
	"storage-local"
	{
		"driver"			"sqlite"
		"database"			"sourcemod-local"
	}

	"clientprefs"
	{
		"driver"			"sqlite"
		"host"				"localhost"
		"database"			"clientprefs-sqlite"
		"user"				"root"
		"pass"				""
		//"timeout"			"0"
		//"port"			"0"
	}
	

}

Last edited by Simca; 08-08-2014 at 06:36.
Simca is offline
Cruckes
Member
Join Date: Jun 2014
Location: Finland
Old 08-08-2014 , 12:24   Re: Server and mysql no connection
Reply With Quote #2

Any errors when you reload SB/admins?
Cruckes is offline
Simca
Senior Member
Join Date: Feb 2012
Old 08-08-2014 , 18:38   Re: Server and mysql no connection
Reply With Quote #3

i reloaded the plugins through server console no errors. Nothing in the logs.

Last edited by Simca; 08-08-2014 at 18:42.
Simca is offline
Amroth
Senior Member
Join Date: Apr 2013
Location: /root
Old 08-08-2014 , 20:24   Re: Server and mysql no connection
Reply With Quote #4

May mysql server isn't allowed for external connections.

If you access to cpanel or something like this, try add remote mysql ip (your server ip) to access to mysql.

Last edited by Amroth; 08-08-2014 at 20:24.
Amroth is offline
Simca
Senior Member
Join Date: Feb 2012
Old 08-09-2014 , 01:35   Re: Server and mysql no connection
Reply With Quote #5

I'm using phpmyadmin and I don't think there is a option like that. Mysql ,sourcebans, game servers are all hosted on the same box.

Last edited by Simca; 08-09-2014 at 01:35.
Simca is offline
Cruckes
Member
Join Date: Jun 2014
Location: Finland
Old 08-09-2014 , 06:16   Re: Server and mysql no connection
Reply With Quote #6

Sounds like you've got VPS.
Do you have Windows or Linux?
Cruckes is offline
Simca
Senior Member
Join Date: Feb 2012
Old 08-09-2014 , 22:00   Re: Server and mysql no connection
Reply With Quote #7

linux ubuntu server
Simca is offline
Simca
Senior Member
Join Date: Feb 2012
Old 08-10-2014 , 10:00   Re: Server and mysql no connection
Reply With Quote #8

Should I downgrade?
Simca is offline
Cruckes
Member
Join Date: Jun 2014
Location: Finland
Old 08-10-2014 , 13:25   Re: Server and mysql no connection
Reply With Quote #9

Try to install Webmin, and make databases with that?
Cruckes is offline
Simca
Senior Member
Join Date: Feb 2012
Old 08-11-2014 , 06:17   Re: Server and mysql no connection
Reply With Quote #10

What would making a database with webmin be different from phpmyadmin?
Simca is offline
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 04:31.


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