MySQL——mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not support

1 cnx = mysql.connector.connect(user='lcherukuri', password='password',
2                               host='127.0.0.1', database='test')

解决方法:

1 cnx = mysql.connector.connect(user='lcherukuri', password='password',
2                               host='127.0.0.1', database='test',
3                               auth_plugin='mysql_native_password')

 

posted on 2018-08-24 14:38  mentiantian  阅读(1454)  评论(0编辑  收藏  举报