1 在一个窗口输入如下命令https://www.cndba.cn/zhasir/article/3468https://www.cndba.cn/zhasir/article/3468https://www.cndba.cn/zhasir/article/3468https://www.cndba.cn/zhasir/article/3468

[root@zhasir ~]# mysqld --skip-grant-tables

2016-06-08 20:37:52 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2016-06-08 20:37:52 0 [Note] mysqld (mysqld 5.6.38-83.0-log) starting as process 3797 ...

2 打开一个新的窗口

[root@zhasir ~]# mysql

Welcome to the MySQL monitor. Commands end with ; or /g.

Your MySQL connection id is 1

Server version: 5.6.38-83.0-log Percona Server (GPL), Release 83.0, Revision dc97471bd40

Copyright (c) 2009-2017 Percona LLC and/or its affiliates

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.

mysql> use mysql

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

mysql> update user set password=password("mysql") where user="root";

Query OK, 1 row affected (0.01 sec)

Rows matched: 1 Changed: 1 Warnings: 0

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

mysql> quit

Bye

[root@zhasir ~]# service mysql stop

Shutting down MySQL (Percona Server).. SUCCESS!

[root@zhasir ~]# service mysql start

Starting MySQL (Percona Server) SUCCESS!

[root@zhasir ~]# service mysql status

SUCCESS! MySQL (Percona Server) running (4640)

4 使用新密码登陆https://www.cndba.cn/zhasir/article/3468

[root@zhasir ~]# mysql -uroot -p

Enter password:

Welcome to the MySQL monitor. Commands end with ; or /g.

Your MySQL connection id is 1

Server version: 5.6.38-83.0-log Percona Server (GPL), Release 83.0, Revision dc97471bd40

Copyright (c) 2009-2017 Percona LLC and/or its affiliates

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.

mysql> select version();

+-----------------+

| version() |

+-----------------+

版权声明:本文为博主原创文章,未经博主允许不得转载。

mysql

mysql5.6.38 设置密码_Percona Server MySQL 5.6.38修改root密码(忘记root密码)相关推荐

  1. mysql path密码忘记_mysql密码忘记

    1.首先确认服务器出于安全的状态,也就是没有人能够任意地连接MySQL数据库. 因为在重新设置MySQL的root密码的期间,MySQL数据库完全出于没有密码保护的 状态下,其他的用户也可以任意地登录 ...

  2. MySQL密码忘记-重置密码

    忘记密码,更改密码: 1.cmd-管理员身份运行 分别输入 net stop mysql cd C:\Mysql\bin  ##结合自己mysql的路径 mysqld --console --skip ...

  3. HPE DL388GEN9 /windows server 2012r2 重置管理员密码/忘记管理员密码

    有台HPE DL388GEN9 /windows server 2012r2的主机,不知道密码.从CSND上查了有人可以通过U盘PE进去用工具去改掉.实测,难以进入PE(也可能是我操作有问题),优先级 ...

  4. 32linux下安装mysql5.7_【Linux】【MySQL】安装MySQL,版本5.7

    本文环境:CentOS7,安装包放在/home/mysql 或者直接在Linux上wget https://downloads.mysql.com/archives/get/p/23/file/mys ...

  5. MySQL数据库修改密码忘记密码

    方法1:用SETPASSWORD命令 MySQL -uroot mysql> SET PASSWORD FOR'root'@'localhost' = PASSWORD('newpass'); ...

  6. mc服务器如何修改密码,mc服务器密码设置密码

    mc服务器密码设置密码 内容精选 换一换 代码迁移工具进行代码迁移时,需要调用Linux下的rpm.deb等命令才能完成扫描和迁移相关任务,这些命令和逻辑必须在后端Linux运行.IDE插件只支持以W ...

  7. mysql 密码忘记办法

    方法1: 用SET PASSWORD命令 首先登录MySQL. 格式:mysql> set password for 用户名@localhost = password('新密码'); 例子:my ...

  8. 服务器修改mysql登录密码忘了怎么办,云服务器mysql密码重置密码忘记了

    云服务器mysql密码重置密码忘记了 内容精选 换一换 弹性云服务器系统密码涉及到客户重要的私人信息,提醒您妥善保管密码.如果您忘记密码或密码过期,可以重置密码.如果弹性云服务器提前安装了密码重置插件 ...

  9. mysql忘记root密码及修改密码

    方法1: 用SET PASSWORD命令  首先登录MySQL.  格式:mysql> set password for 用户名@localhost = password('新密码');  例子 ...

  10. mysql如何通过数据库修改root_MySQL数据库之MySQL——修改root密码的4种方法(以windows为例)...

    本文主要向大家介绍了MySQL数据库之MySQL--修改root密码的4种方法(以windows为例) ,通过具体的内容向大家展现,希望对大家学习MySQL数据库有所帮助. 方法1: 用SET PAS ...

最新文章

  1. Activiti——工作流之流程实例、任务的执行(五)
  2. 【中文】Joomla1.7扩展介绍之Fabrik (强大的表单处理能力)
  3. [CLR via C#]5.1 基元类型
  4. 【面试题41】和为s的两个数字VS和为s的连续整数序列
  5. 50 亿观众的 “云上奥运”,顶级媒体背后的数智化力量
  6. python:实现简单购物车增加商品、删除商品的功能
  7. java swing还有人用吗_Java不是自动管理内存吗,怎么还有内存泄漏?
  8. docker如何安装vim和yum命令?
  9. 华为Mate 40系列外观偷跑:后置八卦图六摄亮了!
  10. 【ES】ES Attempted to send a bulk request to elasticsearch but Elasticsearch appears to be unreachabl
  11. java 枚举类型_java 枚举类型(翻译自Java Tutorials)
  12. jQuery EasyUI API 中文文档 - 菜单按钮(MenuButton)
  13. 运维之Linux秋招重点(根据面经和常见笔试题总结,持续更新)
  14. php的json_encode函数问题
  15. hibernate注解方式实现一对多映射
  16. C语言大作业--小型工资管理系统
  17. 使用键盘设置桌面计算机图标的显示不出来,显示桌面,小编教你显示桌面图标不见了如何恢复...
  18. file_get_contents获取参数并用file_put_contents保存图片
  19. 计算机注册表命令,注册表命令,小编教你电脑怎么打开注册表编辑器
  20. Word上次启动失败,安全模式可以希助您解决问题,但是部分功能在此模式下可能不可用

热门文章

  1. PHP自动加载(下)——PSR4
  2. JS精粹知识点和我的解释
  3. tecplot360的宏命令
  4. C# System.Drawing.SystemColors 系统颜色
  5. JS判断字符串变量是否含有某个字串的实现方法
  6. 【转】博客美化(6)为你的博文自动添加目录
  7. 自适应的设置字体的方式
  8. 【BZOJ】【2730】【HNOI2012】矿场搭建
  9. 再谈javascript图片预加载技术(转)
  10. performancepoint里面建立数据源的时候,总是发生以下的报警(转的)我也遇到了这个问题...