sudo mysql -u root -p   先进入mysql

mysql连接pycharm

mysql> grant select,insert on .* to '*****'@'localhost' identified by '*****';

            grant 权限 on 库名.表名 to '用户名'@'ip地址' identified by 密码;

            新建一个用户 ******  密码 *********** 只对 ******数据库下面所有的表 拥有查询 和插入的权限

在pycharm右边2个可以点击的框框  点击database

mysql连接pycharm

mysql连接pycharm

 点击mysql

mysql连接pycharm

 将自己刚刚创建的user  passworld 填进去

点击 test connection测试

 

 在点击apply

相关文章:

  • 2022-12-23
  • 2021-11-20
  • 2021-09-05
  • 2021-04-27
  • 2021-11-24
  • 2022-12-23
  • 2021-09-08
猜你喜欢
  • 2021-04-04
  • 2021-10-21
  • 2022-12-23
  • 2022-01-01
  • 2021-08-31
  • 2021-09-15
相关资源
相似解决方案