thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!

Author Topic: Question about database  (Read 3716 times)

Offline flashback

  • Newbie
  • *
  • Posts: 3
Question about database
« on: September 14, 2006, 03:03:54 PM »
i got the bot working but it does not write to the database
how can i solve it
posting log on REQ

Offline Admin

  • Former Dev. (senate)
  • Sr. Member
  • *****
  • Posts: 350
Re: Question about database
« Reply #1 on: September 14, 2006, 05:13:55 PM »
Your question is very vague. Why does it not write? At least the logs would be needed to determine that.

Offline flashback

  • Newbie
  • *
  • Posts: 3
Re: Question about database
« Reply #2 on: September 15, 2006, 03:30:26 PM »
060915 15:20:15   DEBUG   Storage: getClient <b3.clients.Client object at 0x00C78790>
060915 15:20:15   BOT       Attempting to connect to database mysql://b3:******@localhost/b3...
060915 15:20:15   DEBUG   User not found WORLD: 'No client matching guid WORLD in admins_cache'
060915 15:20:15   BOT       Client not found in the storage WORLD, create new
060915 15:20:15   DEBUG   Storage: setClient <b3.clients.Client object at 0x00C78790>
060915 15:20:15   DEBUG   Storage: setClient data {'time_add': 1158326415, 'time_edit': 1158326415, 'name': 'World', 'group_bits': 0, 'ip': '', 'greeting': '', 'auto_login': 1, 'connections': 1, 'mask_level': 0, 'guid': 'WORLD', 'pbid': 'WORLD'}
060915 15:20:15   BOT       Attempting to connect to database mysql://b3:******@localhost/b3...
060915 15:20:15   DEBUG   Client Authorized: [-1] World - WORLD
_________________________________________________ _________________________________________________ __________________________________

this is me connecting


060915 15:30:52   DEBUG   Storage: getClient <b3.clients.Client object at 0x00DAB0B0>
060915 15:30:52   BOT       Attempting to connect to database mysql://b3:******@localhost/b3...
060915 15:30:52   ERROR   Database connection failed, working in remote mode: (1045, "Access denied for user: '[email protected]' (Using password: YES)") - [('C:\\bot\\b3\\storage.py', 190, 'connect', 'self.db = self.getConnection()'), ('C:\\bot\\b3\\storage.py', 149, 'getConnection', "return MySQLdb.connect(host=self.dsnDict['host'], user=self.dsnDict['user'], passwd=self.dsnDict['password'], db=self.dsnDict['path'][1:])"), ('C:\\Python24\\Lib\\site-packages\\MySQLdb\\__init__.py', 75, 'Connect', 'return Connection(*args, **kwargs)'), ('C:\\Python24\\Lib\\site-packages\\MySQLdb\\connections.py', 164, '__init__', 'super(Connection, self).__init__(*args, **kwargs2)')]
« Last Edit: September 15, 2006, 03:32:40 PM by flashback »

Offline click

  • Sr. Member
  • ****
  • Posts: 259
    • Deadbone Platoon
Re: Question about database
« Reply #3 on: September 15, 2006, 05:41:11 PM »
There is your problem right there:
060915 15:30:52   DEBUG   Storage: getClient <b3.clients.Client object at 0x00DAB0B0>
060915 15:30:52   BOT       Attempting to connect to database mysql://b3:******@localhost/b3...
060915 15:30:52   ERROR   Database connection failed, working in remote mode: (1045, "Access denied for user:

Make sure you have the correct logon and password for your mysql database.
Deadbone Platoon
B3 Driven CoD Servers

 


Rate this page +1 at Google Search

anything