摘要: mysql数据库安装完成 1、设置root账号密码 alter user 'root'@'localhost' identified by "123456"; update mysql.user set authentication_string=password('123456') where u 阅读全文
posted @ 2020-06-15 10:55 钱哥的博客 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 1、给admin授权管理员权限 > use admin; > db.createUser({user:'admin',pwd:'123456', roles:[{role:'root', db:'admin'}]}); 如果需要修改admin密码 > db.changeUserPassword('a 阅读全文
posted @ 2020-06-15 10:42 钱哥的博客 阅读(1134) 评论(0) 推荐(0) 编辑