In trying to run swarm.py (within …/hotgym/prediction/one_gym) I’m getting this error. >
“Can’t connect to MySQL server on %r (%s)” % (self.host, e))
pymysql.err.OperationalError: (2003, ‘Can’t connect to MySQL server on ‘localhost’ ((1045, u"Access denied for user ‘root’@‘localhost’ (using password: NO)"))’)
At first I got the same error from the test_db.py validation script, but I fixed that and got ‘Connection Successful’, by hard coding my password into the file in place of this line:
It seems that this line returns empty (which is the default password), but I did set a password in setting up mysql. Would anyone know where I can change the output of this Configuration.get() line so it returns my actual password instead of empty? Or where I could hard-code around it? Thanks!!