当前位置:网站首页>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 !
边栏推荐
- 仿网易云音乐的YY音乐微信小程序源码
- vi 与 vim 快捷按键说明大全
- 性能测试基础笔试题
- 阿里云技术点总结
- 102 polkadot substrate : 存在证明
- Solving inverse matrix with C language
- Payment products and their usage scenarios
- 106 Polkadot substrate: fork free upgrade
- 第三方支付的发展趋势及优势
- 基于多数据源零代码同时生成多个数据库CRUD增删改查RESTful API接口——MySql,PostgreSql,Oracle,Microsoft SQL Server
猜你喜欢
文件包含漏洞
浅谈微信支付风控
LeedCode 思维训练(二)
10E polkadot substrate : 配置合约托盘
[JS] usage of call (), apply (), bind ()
价值1500的全新UI众人帮任务帮PHP源码/悬赏任务抖音快手头条点赞源码/带三级分销可封装小程序
Generate multiple databases at the same time based on multiple data sources and zero code, add, delete, modify and check restful API interfaces - mysql, PostgreSQL, Oracle, Microsoft SQL Server
Discuz杂志/新闻报道模板(jeavi_line)UTF8-GBK/DZ模板下载
哈希桶的应用
C language --- unary sparse polynomial operation
随机推荐
Vs2019 modify background + height custom font color
[JS] shallow copy and deep copy
C语言实现 求解逆矩阵
10E polkadot substrate : 配置合约托盘
Windows下PHPStudy服务环境80端口被进程System占用的解决方法
腾讯地图api 请求来源未被授权, 此次请求来源域名
10O polkadot substrate : 开发智能合约
10e Polkadot substrate: configure contract tray
ShardingJDBC
微信公众号、微信支付开发
[JS] usage of call (), apply (), bind ()
TS 基础数据类型
104 polkadot substrate : 许可网络
Les paiements groupés répondent aux besoins de toutes les industries pour accéder à divers canaux de paiement
Object of ES6 Difference between defineproperty and proxy
求 top k有哪些方法
Payment products and their usage scenarios
什么是网银支付
如何搭建自己的第四方支付平台?
Advantages of aggregated payment