当前位置:网站首页>What if I forget my MySQL password?
What if I forget my MySQL password?
2022-07-20 08:58:00 【Xibeiye】
Local mysql I forgot the password , What do I do ? Don't worry. Follow me step by step :
1、 Apple -> System preferences -> Lowest point mysql In the pop-up page close mysql service ;
2、 Enter terminal input :cd /usr/local/mysql/bin
3、 After returning Login administrator rights sudo su ( Enter the password for your computer )
4、 Enter the following command to disable mysql Verification function ./mysqld_safe --skip-grant-tables & ( Note that mysqld)
5、 After returning mysql It will restart automatically ( You can see in the preferences mysql The state of running)
6、 Then enter the command ./mysql
7、 After entering, you can see the following effect :
There is a comforting mysql> Prompt !!!
8、 The following is to change the password
Then the input :FLUSH PRIVILEGES;
After returning , Input :SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123456');
Perfect password reset !
边栏推荐
- Introduction to two core functions of access aggregation
- JWT+RSA 无状态SSO原理
- 项目代码编程规范(设计类和方法、变量、for语句格式 、while语句、 switch语句 、封装事务)
- mongodb 查询和投影运算符
- 什么是网银支付
- 调用高德地图--地址转换成经纬度
- Discuz杂志/新闻报道模板(jeavi_line)UTF8-GBK/DZ模板下载
- 基于多数据源零代码同时生成多个数据库CRUD增删改查RESTful API接口——MySql,PostgreSql,Oracle,Microsoft SQL Server
- php生成的csv, 无法完整显示带前导0的数字
- 绑定class样式和绑定style样式
猜你喜欢
基于多数据源零代码同时生成多个数据库CRUD增删改查RESTful API接口——MySql,PostgreSql,Oracle,Microsoft SQL Server
ShardingJDBC
PHP怎么根据键值去除数组中的某个元素
104 Polkadot substrate: licensed network
慧眼识花草微信小程序源码/植物辨别微信小程序源码
mysql密码忘了,怎么办?
Wechat applet encapsulates custom tabbar, the sub page displays tabbar, and the main page can also be set (it is recommended to use the original tabbar of the applet), which is only for personal use
苹果cms V10模板/MXone Pro自适应影视电影网站模板
10A polkadot substrate : 节点指标
[JS] shallow copy and deep copy
随机推荐
网安学习笔记-1 文件上传
10o Polkadot substrate: develop smart contracts
PHP 常用函数总结
接入聚合的两个核心功能介绍
聚合收款码的优势
哈希桶的应用
Solving inverse matrix with C language
苹果cms V10模板/MXone Pro自适应影视电影网站模板
10C polkadot substrate : 添加 pallet 到 runtime
【无标题】mysql之binlog数据恢复流程
PHP怎么根据键值去除数组中的某个元素
promise异步回调函数
10C Polkadot substrate: add pallet to runtime
php二位数组 按照里面的某个字段排序
10I polkadot substrate : 连接本地平行链
php json变数组问题
代付和分账的区别
Wordpress固定链接怎么设置伪静态
Aggregate payment meets the needs of various industries to access a variety of payment channels
106 polkadot substrate : 无叉升级