2
respostas

Erros ao executar prepara_banco

Conectando...

Traceback (most recent call last):

File "/Users/gcoscarelli/PycharmProjects/Flask/prepara_banco.py", line 26, in conn.cursor().execute(criar_tabelas)

File "/Users/gcoscarelli/PycharmProjects/Flask/venv/lib/python3.7/site-packages/MySQLdb/cursors.py", line 257, in execute self.warningcheck()

File "/Users/gcoscarelli/PycharmProjects/Flask/venv/lib/python3.7/site-packages/MySQLdb/cursors.py", line 149, in warningcheck warnings = db.show_warnings()

File "/Users/gcoscarelli/PycharmProjects/Flask/venv/lib/python3.7/site-packages/MySQLdb/connections.py", line 382, in show_warnings self.query("SHOW WARNINGS")

File "/Users/gcoscarelli/PycharmProjects/Flask/venv/lib/python3.7/site-packages/MySQLdb/connections.py", line 280, in query _mysql.connection.query(self, query)

mysqlexceptions.ProgrammingError: (2014, "Commands out of sync; you can't run this command now")

2 respostas

Tente confirmar as credencias, o host e a porta onde esta rodando o seu servidor do MySQL

Já confirmei, está correto.