1049 Unknown database 'monocle'
Closed this issue · 0 comments
When doing:
python scripts/create_db.py
I get this:
C:\Users\User\Monocle>C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\python scripts/create_db.py
Traceback (most recent call last):
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 1122, in _do_get
return self._pool.get(wait, self._timeout)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\util\queue.py", line 145, in get
raise Empty
sqlalchemy.util.queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\engine\base.py", line 2138, in _wrap_pool_connect
return fn()
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 387, in connect
return _ConnectionFairy._checkout(self)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 766, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 516, in checkout
rec = pool._do_get()
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 1138, in _do_get
self._dec_overflow()
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\util\langhelpers.py", line 60, in exit
compat.reraise(exc_type, exc_value, exc_tb)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\util\compat.py", line 187, in reraise
raise value
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 1135, in _do_get
return self._create_connection()
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 333, in _create_connection
return _ConnectionRecord(self)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 461, in init
self.__connect(first_connect_check=True)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 651, in __connect
connection = pool.invoke_creator(self)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\engine\strategies.py", line 105, in connect
return dialect.connect(*cargs, **cparams)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\engine\default.py", line 393, in connect
return self.dbapi.connect(*cargs, **cparams)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\MySQLdb_init.py", line 86, in Connect
return Connection(*args, **kwargs)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\MySQLdb\connections.py", line 204, in init
super(Connection, self).init(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1049, "Unknown database 'monocle'")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "scripts/create_db.py", line 11, in
Base.metadata.create_all(_engine)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\sql\schema.py", line 3860, in create_all
tables=tables)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\engine\base.py", line 1919, in _run_visitor
with self._optional_conn_ctx_manager(connection) as conn:
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\contextlib.py", line 82, in enter
return next(self.gen)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\engine\base.py", line 1912, in _optional_conn_ctx_manager
with self.contextual_connect() as conn:
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\engine\base.py", line 2103, in contextual_connect
self._wrap_pool_connect(self.pool.connect, None),
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\engine\base.py", line 2142, in _wrap_pool_connect
e, dialect, self)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\engine\base.py", line 1456, in _handle_dbapi_exception_noconnection
exc_info
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\util\compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\util\compat.py", line 186, in reraise
raise value.with_traceback(tb)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\engine\base.py", line 2138, in _wrap_pool_connect
return fn()
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 387, in connect
return _ConnectionFairy._checkout(self)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 766, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 516, in checkout
rec = pool._do_get()
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 1138, in _do_get
self._dec_overflow()
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\util\langhelpers.py", line 60, in exit
compat.reraise(exc_type, exc_value, exc_tb)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\util\compat.py", line 187, in reraise
raise value
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 1135, in _do_get
return self._create_connection()
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 333, in _create_connection
return _ConnectionRecord(self)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 461, in init
self.__connect(first_connect_check=True)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\pool.py", line 651, in __connect
connection = pool.invoke_creator(self)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\engine\strategies.py", line 105, in connect
return dialect.connect(*cargs, **cparams)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\sqlalchemy\engine\default.py", line 393, in connect
return self.dbapi.connect(*cargs, **cparams)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\MySQLdb_init.py", line 86, in Connect
return Connection(*args, **kwargs)
File "C:\WinPython-32bit-3.6.1.0Qt5\python-3.6.1\lib\site-packages\MySQLdb\connections.py", line 204, in init
super(Connection, self).init(*args, **kwargs2)
sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (1049, "Unknown database 'monocle'")