Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1049, "Unknown database 'opencopilot'" #721

Open
mikeyang01 opened this issue Mar 25, 2024 · 2 comments
Open

1049, "Unknown database 'opencopilot'" #721

mikeyang01 opened this issue Mar 25, 2024 · 2 comments

Comments

@mikeyang01
Copy link

i deploy the project to the vps server, one day later, the database was deleted.
Is there any way to prevent the database from delete by someone?

File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__ raise exc_value.with_traceback(exc_tb) File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 898, in __connect self.dbapi_connection = connection = pool._invoke_creator(self) File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/create.py", line 637, in connect return dialect.connect(*cargs, **cparams) File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 616, in connect return self.loaded_dbapi.connect(*cargs, **cparams) File "/usr/local/lib/python3.9/site-packages/pymysql/connections.py", line 358, in __init__ self.connect() File "/usr/local/lib/python3.9/site-packages/pymysql/connections.py", line 664, in connect self._request_authentication() File "/usr/local/lib/python3.9/site-packages/pymysql/connections.py", line 976, in _request_authentication auth_packet = _auth.caching_sha2_password_auth(self, auth_packet) File "/usr/local/lib/python3.9/site-packages/pymysql/_auth.py", line 240, in caching_sha2_password_auth pkt = conn._read_packet() File "/usr/local/lib/python3.9/site-packages/pymysql/connections.py", line 772, in _read_packet packet.raise_for_error() File "/usr/local/lib/python3.9/site-packages/pymysql/protocol.py", line 221, in raise_for_error err.raise_mysql_exception(self._data) File "/usr/local/lib/python3.9/site-packages/pymysql/err.py", line 143, in raise_mysql_exception raise errorclass(errno, errval) sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1049, "Unknown database 'opencopilot'") (Background on this error at: https://sqlalche.me/e/20/e3q8)
CleanShot 2024-03-25 at 16 39 54@2x

@mikeyang01
Copy link
Author

@gharbat I hope this message finds you well. I'm reaching out to you regarding this issue. We've encountered a challenge that I believe your expertise could greatly assist in resolving.

@AhmedElyos
Copy link

same problem here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants