Bitcoin Forum
April 26, 2024, 08:39:15 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Q] MYSQL - PSQL - Pool sharelogging (eloipool) for frontend  (Read 1176 times)
sippsnapp (OP)
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250


View Profile
October 07, 2012, 01:58:02 PM
Last edit: October 07, 2012, 04:13:37 PM by sippsnapp
 #1

Code:
Error setting up share logger sql: (<class 'NameError'>, NameError("name 'long' is not defined",), <traceback object at 0x188a0e0>)
Any idea what this means?
Im trying to setup eloipool sharelogger for either psql or mysql.

The config of eloi looks like this:
Code:
	{

'type': 'sql',

'engine': 'postgres',

'dbopts': {

'host': 'localhost',

'database': 'pooldb',

'user': 'eloipool',

'password': 'somethingsecret',

},

'statement': "insert into shares (rem_host, username, our_result, upstream_result, reason, solution) values ({Q(remoteHost)}, {username}, {YN(not(rejectReason))}, {YN(upstreamResult)}, {rejectReason}, decode({solution}, 'hex'))",

},

{

'type': 'sql',

'engine': 'mysql',

'dbopts': {

'host': 'localhost',

'db': 'pooldb',

'user': 'eloipool',

'password': 'somethingsecret',

},

'statement': "insert into shares (rem_host, username, our_result, upstream_result, reason, solution) values ({Q(remoteHost)}, {username}, {YN(not(rejectReason))}, {YN(upstreamResult)}, {rejectReason}, unhex({solution}))",

},

Maybe i have to create tables manually?? But how??

EDIT:
I need both database setups (mysql and psql), so i need the correct commands most probably to create the required tables but im not familiar enough with both languages to do this correctly.

Πάντα ῥεῖ
Bitcoin + Altcoin node pool setup - pm
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!