MySQL Forums
Forum List  »  General

MySQL 8 - caching_sha2_password
Posted by: Sasi Tovi
Date: November 21, 2020 06:51AM


I'm using MySQL 8.0.21 and I'm getting the following error message:
"_mysql_exceptions.OperationalError: (1045, 'Plugin caching_sha2_password could not be loaded: it is already loaded')"

all the users are using the plugin of caching_sha2_password and the default_authentication_plugin is also set to caching_sha2_password

the full error is:

stacktrace: "Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/flask/", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask/", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/", line 35, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/flask/", line 1811, in full_dispatch_request
rv = self.preprocess_request()
File "/usr/local/lib/python3.6/site-packages/flask/", line 2087, in preprocess_request
rv = func()
File "/src/secdo/single_tenant_services/agent_api/", line 112, in validate_token
agent_id, token = AgentTokenService.validate(token)
File "/src/secdo/business_logic/agent/token/", line 83, in validate
saved_token = list(obs.fetch(agent_id_filter))
File "/src/secdo/observers/", line 30, in fetch
res = dao.fetch(parsed_filters, query_params)
File "/src/secdo/core/data_access/", line 29, in fetch
return self.execute(sql, filter_params)
File "/src/secdo/core/databases/mysql/", line 163, in execute
raise e
File "/src/secdo/core/databases/mysql/", line 143, in execute
File "/src/secdo/core/databases/mysql/", line 71, in _execute
with self.mysql_pool.getcursor(commit=commit, search_path=self._get_search_path()) as cur:
File "/usr/local/lib/python3.6/", line 81, in __enter__
return next(self.gen)
File "/src/secdo/core/databases/mysql/", line 64, in getcursor
with self.getconn(commit=commit) as conn:
File "/usr/local/lib/python3.6/", line 81, in __enter__
return next(self.gen)
File "/src/secdo/core/databases/mysql/", line 44, in getconn
connection = self.engine.pool.connect()
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/", line 434, in connect
return _ConnectionFairy._checkout(self)
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/", line 831, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/", line 563, in checkout
rec = pool._do_get()
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/", line 1259, in _do_get
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/util/", line 67, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/util/", line 277, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/", line 1256, in _do_get
return self._create_connection()
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/", line 379, in _create_connection
return _ConnectionRecord(self)
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/", line 508, in __init__
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/", line 710, in __connect
connection = pool._invoke_creator(self)
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/", line 336, in <lambda>
return lambda crec: creator()
File "/src/secdo/core/databases/mysql/", line 39, in mysql_connect
File "/usr/local/lib/python3.6/site-packages/MySQLdb/", line 85, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/MySQLdb/", line 204, in __init__
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1045, 'Plugin caching_sha2_password could not be loaded: it is already loaded')"

Do you have any idea on how to solve this?


Options: ReplyQuote

Written By
MySQL 8 - caching_sha2_password
November 21, 2020 06:51AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.