Feature #13

add port to the mysql connect

Added by Manfred Schilling over 3 years ago. Updated over 3 years ago.

Status:Closed Start date:
Priority:Normal Due date:
Assignee:somebody - % Done:

0%

Category:Glastopf Spent time: -
Target version:Add some features
Resolution:fixed

Description

in dbmysql.py add at line 12:

    'port': config.get("mysql",'port')^

in dbmysql.py change:

mysql = [[MySQLdb]].connect(mysql_opts['host'], mysql_opts['user'], mysql_opts['pass'], mysql_opts['db'])

to
mysql = [[MySQLdb]].connect(mysql_opts['host'], mysql_opts['user'], mysql_opts['pass'], mysql_opts['db'], int(mysql_opts['port']))

----
in conf/rfih.conf add in [mysql]:
port: 3306 #default mysql_port

History

Updated by anonymous - over 3 years ago

  • Status changed from New to Assigned

Updated by somebody - over 3 years ago

  • Status changed from Assigned to New

Updated by Lukas Rist over 3 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Updated by Manfred Schilling over 3 years ago

  • Status changed from Closed to Feedback
  • Resolution deleted (fixed)

have you tried it?
what i had seen by browsing source, you have not used int().

I tried this way first, but it came up with error mesage

"parameter not an integer" (or something like that)

I won't change it back at my test system, so please test it yourself.

greets,
kat

p.s. this is closed ticket, but i won't start a new one,

so: reopen.

Updated by Lukas Rist over 3 years ago

  • Status changed from Feedback to Closed
  • Resolution set to fixed

My fault. Now changed and tested.

Also available in: Atom PDF