• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






编程领地

https://www.itboolean.com
 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2020年6月3日

mysql 忘记root密码
摘要: 这里以Centos 7为例: 步骤: 进入mysql配置文件 vim /etc/my.cnf 在my.cnf 文件里设置跳过密码登录。 [mysqld] skip-grant-tables 重启mysql service mysqld restart 进入mysql ,不需要密码进入数据库 mysq 阅读全文
posted @ 2020-06-03 17:54 编程领地 阅读(159) 评论(0) 推荐(0)
 
mysql 创建远程用户
摘要: 进入mysql: mysql -u root -p 使用mysql数据库 use mysql; 创建远程用户 grant all privileges on . to '用户名'@'%' identified by '密码' with grant option; 重启mysql service my 阅读全文
posted @ 2020-06-03 17:33 编程领地 阅读(456) 评论(0) 推荐(0)
 
mysql57修改用户密码
摘要: 进入mysql: mysql -u root -p 选择数据库: use mysql; 修改密码: update user set password=password('新密码') where user='用户名'; 刷新权限表: flush privileges; 用户密码修改完成。 为什么要用f 阅读全文
posted @ 2020-06-03 17:24 编程领地 阅读(2487) 评论(0) 推荐(0)