我已按照https://github.com/worldveil/dejavu/blob/master/INSTALLATION.md中的要求安装了所有依赖项。我正在使用Ubuntu 14.4,对Linux不是很熟悉。我安装了MYSQLDB并创建了一个名为“dejavu”的数据库。但是,在终端上运行这个命令时,我遇到了以下错误。
我猜想这可能与我将Dejavu与数据库链接或未链接的方式有关。非常感谢任何帮助。谢谢。
> paul@paul-HP-Pavilion-dv6700-Notebook-PC:~/dejavu$ python dejavu.py
> --recognize mic 10 Traceback (most recent call last): File "dejavu.py", line 64, in <module>
> djv = init(config_file) File "dejavu.py", line 31, in init
> return Dejavu(config) File "/home/paul/dejavu/dejavu/__init__.py", line 28, in __init__
> self.db.setup() File "/home/paul/dejavu/dejavu/database_sql.py", line 158, in setup
> with self.cursor() as cur: File "/home/paul/dejavu/dejavu/database_sql.py", line 322, in cursor
> return Cursor(**options) File "/home/paul/dejavu/dejavu/database_sql.py", line 345, in __init__
> conn = mysql.connect(**options) File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in
> Connect
> return Connection(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187,
> in __init__
> super(Connection, self).__init__(*args, **kwargs2)
> _mysql_exceptions.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)")
我猜想这可能与我将Dejavu与数据库链接或未链接的方式有关。非常感谢任何帮助。谢谢。