You are here: Big Brother Bot ForumAdd-OnsEchelonMaking a DB for echelon
Pages: [1]   Go Down
  Print  
Author Topic: Making a DB for echelon  (Read 503 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: Home user
Gameservers: UrT
Posts: 15
Offline Offline
Yo bro
« on: November 17, 2011, 11:47:31 AM »

Hi,
I'd like to run Echelon from my website but if I try to connect to a DB on the website (for b3) I (ofc) get a error, here is the log
Code:
111117 20:28:14 BOT    'www.bigbrotherbot.net (b3) v1.7.1 [nt] [Myrthe]'
111117 20:28:14 BOT    'Python: 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]'
111117 20:28:14 BOT    'Default encoding: ascii'
111117 20:28:14 BOT    'Starting Iourt41Parser v1.11.0 for server 127.0.0.1:27960'
111117 20:28:14 BOT    '--------------------------------------------'
111117 20:28:14 BOT    'Attempting to connect to database mysql://md235059db190126:******@db.truewarriorsclan.nl/md235059db190126...'
111117 20:28:35 ERROR 'Database connection failed, working in remote mode: (2003, "Can\'t connect to MySQL server on \'db.truewarriorsclan.nl\' (10060)") - [(\'C:\\\\UrbanTerror\\\\b3\\\\b3\\\\storage\\\\database.py\', 231, \'connect\', \'self.db = self.getConnection()\'), (\'C:\\\\UrbanTerror\\\\b3\\\\b3\\\\storage\\\\database.py\', 176, \'getConnection\', \'use_unicode = True)\'), (\'C:\\\\Python27\\\\lib\\\\site-packages\\\\MySQLdb\\\\__init__.py\', 81, \'Connect\', \'return Connection(*args, **kwargs)\'), (\'C:\\\\Python27\\\\lib\\\\site-packages\\\\MySQLdb\\\\connections.py\', 187, \'__init__\', \'super(Connection, self).__init__(*args, **kwargs2)\')]'
111117 20:28:35 BOT    'Game log C:\\UrbanTerror\\q3ut4\\games.log'
111117 20:28:35 BOT    'Starting bot reading file C:\\UrbanTerror\\q3ut4\\games.log'

Im running b3 as you possibly can see with UrT on a homeserver, a another option is that I make a 2nd DB for Echelon on my homeserver self but than is the question how to connect on the website (im running XAMPP and I always need to open the ports my selve)
Logged


Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2625
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #1 on: November 17, 2011, 12:16:19 PM »

You need to open the posts on the webserver (or add your ip in cpanel for remote access) so that mysql server will accept connections from your computer. Then B3 will be able to write to the db on the webserver.

The other option is to open the ports on your pc and have echelon connect to your computer.
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Jr. Member
**
OS: Windows
Type: Home user
Gameservers: UrT
Posts: 15
Offline Offline
Yo bro
« Reply #2 on: November 18, 2011, 08:17:53 AM »

The other option is to open the ports on your pc and have echelon connect to your computer.

And to do that? (which ports and how do I config xampp)
Logged

Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2625
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #3 on: November 18, 2011, 09:03:27 AM »

You need to open port 3306, forward it through your router, then go into phpmyadmin and make sure that the user which b3 uses (i.e. root) is not restricted to localhost.
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Jr. Member
**
OS: Windows
Type: Home user
Gameservers: UrT
Posts: 15
Offline Offline
Yo bro
« Reply #4 on: November 19, 2011, 07:43:13 AM »

Ok, its still not quite working
Code:
Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'echelon'@'blade111.mijndomein.nl' (using password: YES) in /public/sites/www.truewarriorsclan.nl/echelon/Connections/wwwvalidate.php on line 3
Access denied for user 'echelon'@'blade111.mijndomein.nl' (using password: YES)

Anyone maybe got some experince with doing this with the dutch hoster Mijndomein?
Could he help me?

"alvast bedankt"
Logged

Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 244
Offline Offline
« Reply #5 on: November 20, 2011, 02:30:49 AM »

You've got access denied info, so triple check your login/password/databaseaddress/database name.
Also, check if you've got access to the database from the internet. By default, if you create user and database in mysql, access to it is restricted to the localhost.
Logged

Jr. Member
**
OS: Windows
Type: Home user
Gameservers: UrT
Posts: 15
Offline Offline
Yo bro
« Reply #6 on: November 20, 2011, 02:36:02 AM »

Yes,...

It now finally works, the trick was that when you make a DB account you have to set under the space that you fill in the name, what is the host (or "machine") and select instead of local, Any host.

ty all
Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal