Mysql 5.7初始化密码
2024-09-26 10:05:02
一、MAC Mysql安装
1、下载dmg安装
从http://dev.mysql.com/downloads/mysql/下载dmg安装
二、Mysql密码修改
1、通过mysql -uroot -ppwd进入到命令行,会发现任何操作都会出现ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement。也就是必须立刻修改密码。
修改密码方法:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'pwd' ;
update mysql.user set authentication_string=PASSWORD('pwd') where user='root' and host='localhost';
flush privileges;
修改完毕
最新文章
- Photoshop 裁剪图片
- 区分元素特性attribute和对象属性property
- 【leetcode❤python】 303. Range Sum Query - Immutable
- 浮动层-JS兼容IE6
- BestCoder Round #83
- jQuery Multi-TouchWipe / Multi-TouchZoom
- Android M 特性 Doze and App Standby模式详解
- struct {0}初始化
- cdoj 93 King's Sanctuary 傻逼几何题
- ERP系统开发平台 (C#语言,支持多数据库)
- Replicate String in C#
- 第03讲- 第一个Android项目
- Spring Boot 2.x(六):优雅的统一返回值
- 使用django 中间件在所有请求前执行功能
- console.log()中的运算与打印事件
- python 命令行颜色
- 【2018.05.09 Python学习及实践】个人项目中使用的Python库备忘-持续更新
- 027_nginx常见优化参数
- vue axios拦截器 + 自编写插件 实现全局 loading 效果;
- DOTween 使用方法
热门文章
- 安装VMware Tools:Ubuntu
- [sqlite] 判断表、视图是否存在及常用C#操作语句
- hdu 4081 Qin Shi Huang's National Road System 树的基本性质 or 次小生成树思想 难度:1
- Unity 3D插入MySql中文无法显示问题
- DS导入导出命令详解
- VPS安装metasploit-framework
- Hibernate报错:Caused by: java.sql.SQLException: Field 'ID' doesn't have a default value
- ubuntu maven install&config
- React-Native基础_4.View组件
- 基于tensorflow的增强学习