pyspider
pyspider copied to clipboard
mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported
- pyspider version: latest
- Operating system:centos 7
- Start up command:
sudo docker run --network=pyspider --name scheduler -d -p 23333:23333 --restart=always binux/pyspider --taskdb "mysql+taskdb://root:[email protected]:3306/taskdb" --resultdb "mysql+projectdb://root:[email protected]:3306/resultdb" --projectdb "mysql+projectdb://root:[email protected]:3306/projectdb" --message-queue "redis://172.0.0.2:6379/0" scheduler --inqueue-limit 10000 --delete-time 3600
Expected behavior
scheduler could running
Actual behavior
Traceback (most recent call last):
File "/usr/local/bin/pyspider", line 11, in
this problem happen because mysql8.0 ,
you can ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '{NewPassword}';
This is giving me a syntax error
me too: ProgrammingError: 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
i'm too getting error while connecting i have installed the python connector ERROR: Authentication plugin 'caching_sha2_password' is not supported pls help
cnx = mysql.connector.connect(user='', password="", # required port=port_number, host="localhost", # required database='database_name', auth_plugin='mysql_native_password' # required )
MySQL Command Line Client ALTER USER 'root'@'localhost' IDENTIFIED BY 'your_password' PASSWORD EXPIRE NEVER; ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_password';
you_password is the password you use to sign in your mysql
which way do you start pyspider? mysql needs a path to the created pyspider database - this is projectdb and beyond. The database is created in the data folder. Look for it at the pyspider launch location if the launch does not follow absolute paths from the pyspider deployment location. If you want to specify the path to the pyspider database take a look at this documentation http://docs.pyspider.org/en/latest/Deployment/
uninstall mysql-connector
by running
pip uninstall mysql-connector
and run
pip install mysql-connector-python
uninstall mysql-connector by running
pip uninstall mysql-connector
and runpip install mysql-connector-python
helped install name pip install mysql-connector-python like for @Vashi1