Favor não considerar a resposta anterior!
\Python\PycharmProjects\app_cadastro\venv\Scripts\python.exe D:/Python/PycharmProjects/Jogo_teca/jogoteca.py
* Restarting with stat
* Debugger is active!
* Debugger PIN: 302-717-369
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [05/May/2020 22:07:32] "GET / HTTP/1.1" 500 -
Traceback (most recent call last):
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\flask\app.py", line 1997, in __call__
return self.wsgi_app(environ, start_response)
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\flask\app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\flask\app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\flask\_compat.py", line 33, in reraise
raise value
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\flask\app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\flask\app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\flask\_compat.py", line 33, in reraise
raise value
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\flask\app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "D:\Python\PycharmProjects\Jogo_teca\jogoteca.py", line 25, in index
lista = jogo_dao.listar()
File "D:\Python\PycharmProjects\Jogo_teca\dao.py", line 27, in listar
cursor = self.__db.connection.cursor()
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\flask_mysqldb\__init__.py", line 94, in connection
ctx.mysql_db = self.connect
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\flask_mysqldb\__init__.py", line 81, in connect
return MySQLdb.connect(**kwargs)
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\MySQLdb\__init__.py", line 84, in Connect
return Connection(*args, **kwargs)
File "D:\Python\PycharmProjects\app_cadastro\venv\Lib\site-packages\MySQLdb\connections.py", line 179, in __init__
super(Connection, self).__init__(*args, **kwargs2)
MySQLdb._exceptions.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)")
127.0.0.1 - - [05/May/2020 22:07:33] "GET /?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
127.0.0.1 - - [05/May/2020 22:07:33] "GET /?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
127.0.0.1 - - [05/May/2020 22:07:33] "GET /?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
127.0.0.1 - - [05/May/2020 22:07:33] "GET /?__debugger__=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 -
127.0.0.1 - - [05/May/2020 22:07:33] "GET /?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
insira seu código aqui