ubuntu安装mysql遇到的几个问题及解决办法
2、终端上用python的mysql访问,报错:'cryptography' package is required for sha256_password or caching_sha2_password auth methods。1) sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf文件里把bind-address =127.0.0.1注释掉;2) 在mysql中给需要开远程访问的用户grant权限;'用户名'@'%';
原创
2024-01-11 10:18:34 ·
428 阅读 ·
1 评论