leondz / cavat

Automatically exported from code.google.com/p/cavat
3 stars 1 forks source link

ImportTimeML uses wrong auth credentials #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This module is still using hard-coded MySQL auth details; 

cavat> corpus import /home/leon/timebank/data/timeml/ to 
timebank
Traceback (most recent call last):
  File "./cavat.py", line 437, in <module>
    import importTimeML
  File "/home/leon/cavat/importTimeML.py", line 29, in <module>
    class ImportTimeML:
  File "/home/leon/cavat/importTimeML.py", line 32, in 
ImportTimeML
    conn = MySQLdb.connect (host = "localhost", user = 
"timebank", passwd = "timebank")
  File "/usr/lib/pymodules/python2.6/MySQLdb/__init__.py", line 
81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py", 
line 170, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1045, "Access denied for 
user 'timebank'@'localhost' (using password: YES)")

$ cat cavat.ini
[cavat]
dbhost=localhost
dbuser=cavat
dbpass=cavat
dbprefix=cavat
dbname=cavat_timebank

Original issue reported on code.google.com by leonderczynski on 19 Mar 2010 at 10:54

GoogleCodeExporter commented 9 years ago

Original comment by leonderczynski on 19 Mar 2010 at 2:23

GoogleCodeExporter commented 9 years ago
updated

Original comment by leonderczynski on 19 Mar 2010 at 3:18