In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsInstallation Support (Moderator: MordyT)Connecting to DB : FAILED!
Pages: [1]   Go Down
  Print  
Author Topic: Connecting to DB : FAILED!  (Read 2117 times) Bookmark and Share
Newbie
*
OS: Windows
Type: Home user
Gameservers: URT
Posts: 3
Offline Offline
« on: March 19, 2010, 02:27:41 PM »

Iam trying so install B3 but it always says : Connecting to DB : FAILED!
I dont know why this dont work.
B3 Log:
Quote
100319 22:58:31   BOT       www.BigBrotherBot.com (b3) v<unknown> [nt] (Daniel)
100319 22:58:31   BOT       Python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
100319 22:58:31   BOT       Starting Iourt41Parser server for 127.0.0.1:27960
100319 22:58:31   BOT       --------------------------------------------
100319 22:58:31   BOT       Attempting to connect to database mysql://b3:******@192.168.2.200/b3_server0...
100319 22:58:52   ERROR   Database connection failed, working in remote mode: (2003, "Can't connect to MySQL server on '192.168.2.200' (10060)") - [('C:\\Dokumente und Einstellungen\\Administrator\\Eigene Dateien\\GameServer\\GameServer\\Urbanterror\\Server0\\b3\\storage.py', 197, 'connect', 'self.db = self.getConnection()'), ('C:\\Dokumente und Einstellungen\\Administrator\\Eigene Dateien\\GameServer\\GameServer\\Urbanterror\\Server0\\b3\\storage.py', 153, 'getConnection', "return MySQLdb.connect(host=self.dsnDict['host'], user=self.dsnDict['user'], passwd=self.dsnDict['password'], db=self.dsnDict['path'][1:])"), ('C:\\Python25\\Lib\\site-packages\\MySQLdb\\__init__.py', 74, 'Connect', 'return Connection(*args, **kwargs)'), ('C:\\Python25\\Lib\\site-packages\\MySQLdb\\connections.py', 170, '__init__', 'super(Connection, self).__init__(*args, **kwargs2)')]
100319 22:58:52   BOT       Game log q3ut4\games.log
100319 22:58:52   BOT       Starting bot reading file q3ut4\games.log
100319 22:58:52   VERBOSE   RCON sending (127.0.0.1:27960) status
100319 22:58:53   BOT       Loading Plugin #1 censor [C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_censor.xml]
100319 22:58:53   BOT       CensorPlugin: Loading config C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_censor.xml for CensorPlugin
100319 22:58:53   DEBUG   Register Event: Stop Process: CensorPlugin
100319 22:58:53   DEBUG   Register Event: Program Exit: CensorPlugin
100319 22:58:53   BOT       Plugin censor (2.1.0 - ThorN) loaded
100319 22:58:53   BOT       Loading Plugin #2 spamcontrol [C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_spamcontrol.xml]
100319 22:58:53   BOT       SpamcontrolPlugin: Loading config C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_spamcontrol.xml for SpamcontrolPlugin
100319 22:58:53   DEBUG   Register Event: Stop Process: SpamcontrolPlugin
100319 22:58:53   DEBUG   Register Event: Program Exit: SpamcontrolPlugin
100319 22:58:53   BOT       Plugin spamcontrol (1.1.2 - ThorN) loaded
100319 22:58:53   BOT       Loading Plugin #3 admin [C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_admin.xml]
100319 22:58:53   BOT       AdminPlugin: Loading config C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_admin.xml for AdminPlugin
100319 22:58:53   DEBUG   Register Event: Stop Process: AdminPlugin
100319 22:58:53   DEBUG   Register Event: Program Exit: AdminPlugin
100319 22:58:53   BOT       Plugin admin (1.4.3 - ThorN) loaded
100319 22:58:53   BOT       Loading Plugin #4 tk [C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_tk.xml]
100319 22:58:53   BOT       TkPlugin: Loading config C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_tk.xml for TkPlugin
100319 22:58:53   DEBUG   TkPlugin: tk max level is 40
100319 22:58:53   DEBUG   TkPlugin: Send messages privately ? True
100319 22:58:53   DEBUG   Register Event: Stop Process: TkPlugin
100319 22:58:53   DEBUG   Register Event: Program Exit: TkPlugin
100319 22:58:53   BOT       Plugin tk (1.2.2 - ThorN) loaded
100319 22:58:53   BOT       Loading Plugin #5 stats [C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_stats.xml]
100319 22:58:53   BOT       StatsPlugin: Loading config C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_stats.xml for StatsPlugin
100319 22:58:53   DEBUG   AdminPlugin: Command "mapstats (mstats)" registered with cmd_mapstats for level (1, 100)
100319 22:58:53   DEBUG   AdminPlugin: Command "testscore (ts)" registered with cmd_testscore for level (1, 100)
100319 22:58:53   DEBUG   AdminPlugin: Command "topstats (tstats)" registered with cmd_topstats for level (9, 100)
100319 22:58:53   DEBUG   Register Event: Stop Process: StatsPlugin
100319 22:58:53   DEBUG   Register Event: Program Exit: StatsPlugin
100319 22:58:53   BOT       Plugin stats (1.2.3 - ThorN) loaded
100319 22:58:53   BOT       Loading Plugin #6 pingwatch [C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_pingwatch.xml]
100319 22:58:53   BOT       PingwatchPlugin: Loading config C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_pingwatch.xml for PingwatchPlugin
100319 22:58:53   VERBOSE   Added crontab <bound method PingwatchPlugin.check of <b3.plugins.pingwatch.PingwatchPlugin instance at 0x00F0A238>> (15767088) - [0, 30]s -1m -1h -1d -1M -1DOW
100319 22:58:53   DEBUG   Register Event: Stop Process: PingwatchPlugin
100319 22:58:53   DEBUG   Register Event: Program Exit: PingwatchPlugin
100319 22:58:53   BOT       Plugin pingwatch (1.1.4 - ThorN) loaded
100319 22:58:53   BOT       Loading Plugin #7 adv [C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_adv.xml]
100319 22:58:53   BOT       AdvPlugin: Loading config C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_adv.xml for AdvPlugin
100319 22:58:53   VERBOSE   Added crontab <bound method AdvPlugin.adv of <b3.plugins.adv.AdvPlugin instance at 0x00F0A580>> (15769296) - 0s [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58]m -1h -1d -1M -1DOW
100319 22:58:53   DEBUG   Register Event: Stop Process: AdvPlugin
100319 22:58:53   DEBUG   Register Event: Program Exit: AdvPlugin
100319 22:58:53   BOT       Plugin adv (1.1.3 - ThorN) loaded
100319 22:58:53   BOT       Loading Plugin #8 status [C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_status.xml]
100319 22:58:53   BOT       StatusPlugin: Loading config C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_status.xml for StatusPlugin
100319 22:58:53   VERBOSE   Added crontab <bound method StatusPlugin.update of <b3.plugins.status.StatusPlugin instance at 0x00F15BC0>> (15983408) -
  • s -1m -1h -1d -1M -1DOW
100319 22:58:53   DEBUG   Register Event: Stop Process: StatusPlugin
100319 22:58:53   DEBUG   Register Event: Program Exit: StatusPlugin
100319 22:58:53   BOT       Plugin status (1.2.7 - ThorN) loaded
100319 22:58:53   BOT       Loading Plugin #9 welcome [C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_welcome.xml]
100319 22:58:53   BOT       WelcomePlugin: Loading config C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_welcome.xml for WelcomePlugin
100319 22:58:53   DEBUG   Register Event: Stop Process: WelcomePlugin
100319 22:58:53   DEBUG   Register Event: Program Exit: WelcomePlugin
100319 22:58:53   BOT       Plugin welcome (1.0.6 - ThorN) loaded
100319 22:58:53   BOT       Loading Plugin #10 publist [C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_publist.xml]
100319 22:58:53   BOT       PublistPlugin: Loading config C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_publist.xml for PublistPlugin
100319 22:58:53   BOT       PublistPlugin: No config file found for PublistPlugin. (was not required either)
100319 22:58:53   DEBUG   Register Event: Stop Process: PublistPlugin
100319 22:58:53   DEBUG   Register Event: Program Exit: PublistPlugin
100319 22:58:53   BOT       Plugin publist (1.1.11 - ThorN) loaded
100319 22:58:53   BOT       Loading Plugin #11 punkbuster [C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_punkbuster.xml]
100319 22:58:53   BOT       PunkbusterPlugin: Loading config C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\GameServer\GameServer\Urbanterror\Server0\b3\conf\plugin_punkbuster.xml for PunkbusterPlugin
100319 22:58:53   VERBOSE   Added crontab <bound method PunkbusterPlugin.rebuildBans of <b3.plugins.punkbuster.PunkbusterPlugin instance at 0x00F696C0>> (16140912) - 0s 0m 0h -1d -1M -1DOW
100319 22:58:53   DEBUG   Register Event: Stop Process: PunkbusterPlugin
100319 22:58:53   DEBUG   Register Event: Program Exit: PunkbusterPlugin
100319 22:58:53   BOT       Plugin punkbuster (1.0.8 - ThorN) loaded
100319 22:58:53   VERBOSE   RCON sending (127.0.0.1:27960) say ^2.^1:^5R^1:^5T^1:^5L^1:^2. ^3-> ^8www.BigBrotherBot.com ^0(^8b3^0) ^9v<unknown> [nt] ^9(^3Daniel^9)^3 ^2[ONLINE]
100319 22:58:53   VERBOSE   0 cid changed from None to -1
100319 22:58:53   DEBUG   Client Connected: [-1] World - WORLD ({})
100319 22:58:53   DEBUG   Storage: getClient <b3.clients.Client object at 0x00E4E0B0>
100319 22:58:53   BOT       Attempting to connect to database mysql://b3:******@192.168.2.200/b3_server0...
100319 22:58:53   DEBUG   User not found WORLD: 'No client matching guid WORLD in admins_cache'
100319 22:58:53   BOT       Client not found in the storage WORLD, create new
100319 22:58:53   DEBUG   Storage: setClient <b3.clients.Client object at 0x00E4E0B0>
100319 22:58:53   DEBUG   Storage: setClient data {'time_add': 1269035933, 'time_edit': 1269035933, 'name': 'World', 'group_bits': 0, 'ip': '', 'greeting': '', 'auto_login': 1, 'connections': 1, 'mask_level': 0, 'guid': 'WORLD', 'pbid': 'WORLD'}
100319 22:58:53   BOT       Attempting to connect to database mysql://b3:******@192.168.2.200/b3_server0...
100319 22:58:53   DEBUG   Client Authorized: [-1] World - WORLD
...

ConfigFile:


Screenshot:



My SystemConfiguration:
Server 1(Server 2008 Datacenter) -> HostSystem running MySQL and Hyper-V
Server 2(windows XP Pro) -> Guest system running URT Server and B3Bot

I think that the MySQL service is not enough Maybe right one has.
When I create a user with any host I can not connect with PHPMyAdmin.
It is only with localhost: (
you can try to connect once, I've created a test user:
DB: test
Pass: test
Server: whitewire.ath.cx
Info: User createt for any host -> test'@'%'
« Last Edit: March 19, 2010, 04:50:58 PM by JackAv » Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3477
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: March 19, 2010, 03:23:03 PM »

when you create a new user on phpmyadmin, it says it that new user will be allow to connect from any host or just localhost
Logged

Newbie
*
OS: Windows
Type: Home user
Gameservers: URT
Posts: 3
Offline Offline
« Reply #2 on: March 19, 2010, 03:51:11 PM »

Yes i know and i set it to any host and then  i cant connect with the created user. it works only if i set it to localhost:(


Edit: if i set it to any host i cant connect with localhost too ;(
« Last Edit: March 19, 2010, 04:36:27 PM by JackAv » Logged
Newbie
*
OS: Windows
Type: Home user
Gameservers: URT
Posts: 3
Offline Offline
« Reply #3 on: March 19, 2010, 06:06:47 PM »

MySQL Config file -->my.ini
Quote
# Example MySQL config file for very large systems.
#
# This is for a large system with memory of 1G-2G where the system runs mainly
# MySQL.
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is C:\mysql\data) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.

# The following options will be passed to all MySQL clients
[client]
#password   = your_password
port      = 3306
socket      = /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port      = 3306
socket      = /tmp/mysql.sock
skip-locking
key_buffer_size = 384M
max_allowed_packet = 1M
table_open_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8

# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking

# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin

# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id   = 1

# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
#    the syntax is:
#
#    CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
#    MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
#
#    where you replace <host>, <user>, <password> by quoted strings and
#    <port> by the master's port number (3306 by default).
#
#    Example:
#
#    CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
#    MASTER_USER='joe', MASTER_PASSWORD='secret';
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
#    start replication for the first time (even unsuccessfully, for example
#    if you mistyped the password in master-password and the slave fails to
#    connect), the slave will create a master.info file, and any later
#    change in this file to the variables' values below will be ignored and
#    overridden by the content of the master.info file, unless you shutdown
#    the slave server, delete master.info and restart the slaver server.
#    For that reason, you may want to leave the lines below untouched
#    (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id       = 2
#
# The replication master for this slave - required
#master-host     =   <hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user     =   <username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password =   <password>
#
# The port the master is listening on.
# optional - defaults to 3306
#master-port     =  <port>
#
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin
#
# binary logging format - mixed recommended
#binlog_format=mixed

# Point the following paths to different dedicated disks
tmpdir      = ../tmp/
#log-update    = /path-to-dedicated-directory/hostname

# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = C:\mysql\data/
#innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
#innodb_log_group_home_dir = C:\mysql\data/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 384M
#innodb_additional_mem_pool_size = 20M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 100M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[myisamchk]
key_buffer_size = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal