[root@dbserver latte]# service mysql stop
Shutting down MySQL.. [ 确定 ]
[root@dbserver latte]# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
[root@dbserver latte]# mysql -u root mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.26 MySQL Community Server (GPL)
Copyright (c) 2000, 2015, 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
Database changed
mysql> UPDATE user SET Password=PASSWORD('123456')where USER='mysql';
Query OK, 0 rows affected (0.00 sec)
Rows matched: 0 Changed: 0 Warnings: 0
mysql> quit
Bye
mysql> select host,user,password from mysql.user
+-----------+------+-------------------------------------------+
| host | user | password |
+-----------+------+-------------------------------------------+
| localhost | root | *BC7677BF50E4EA779C30A77CBB58DFD4DC24BD40 |
| dbserver | root | *BC7677BF50E4EA779C30A77CBB58DFD4DC24BD40 |
| 127.0.0.1 | root | *BC7677BF50E4EA779C30A77CBB58DFD4DC24BD40 |
| ::1 | root | *BC7677BF50E4EA779C30A77CBB58DFD4DC24BD40 |
+-----------+------+-------------------------------------------+
mysql> desc mysql.user;
- 浏览: 601812 次
- 来自: 信阳
最新评论
-
贝塔ZQ:
导出数据到excel文档中,可以使用pageoffice插件实 ...
Java POI 数据导出到Excel 2010 -
熊佳佳:
key是需要向支付宝购买额度的
支付宝即时到帐接口调试入口页面 -
zhuzuofei:
你好,你代码中提供的pid,key好像是无效的...
支付宝即时到帐接口调试入口页面 -
xingxing:
光有图没有解决方案......
centOS setup 命令 设置网络参数 -
atgoingguoat:
...
Android:简单的图片浏览器
相关推荐
申延超 Cent OS 5 Linux NFS 服务 安装
cent os cent os
Cent OS 下安装oracle 10 详细步骤以及 出现的问题 的解决方法
里面有安装cent-os全过程,有44张截图,安装的每一个步骤都有图。
本文详细说明Mysql5.6 在Linux上安装的详细步骤,每一步骤都详细说明及截图,绝对一次到位。
linux 从入门到大神。红帽认证的必学书目
Cent OS上 Redis的安装部署(最新详细教程)里面所有需要用到的软件
2.6.0源码编译生成的lib包目录。替换官网下载的资源里的lib目录即可
Linux(Cent OS7.2)下启动停止memcached方法及ps命令使用讲解.docx
安装版本red hat Cent 7.0 MYSQL 版本 8.0.2.0 成功部署完毕后出现故障情况: 1. 正常启动MYSQL服务后,敲Linux中root账户和密码进入不去。 2. 从/etc/my.cnf 配置文件中加入skip-grant-table后正常登陆,但是不...
Cent OS上配置Apache2 + SVN Cent OS上配置Apache2 + SVN
cent OS7无网络安装redis
1.简述Linux文件系统通过i节点把文件的逻辑结构和物理结构转换的工作过程。参考答案:Linux通过i节点表将文件的逻辑结构和物理结构进行转换。i节点是一个64字节长的表,表中包含了文件的相关信息,其中有文件的大小...
Cent OS 配置日志服务器和配置详解
一个指导完全安装ntfs支持的cent os系统
Cent OS6.5 安装nodeJS(分分钟搞定)
主要介绍了简单记录Cent OS服务器配置JDK+Tomcat+MySQL,需要的朋友可以参考下
Cent-OS安装和卸载docker
Cent OS安装 + MongoDB安装部署(单节点+副本集+分片) 详细教程 的 MARKDOWN文档更加方便安装
centerOs底下安装mysql-附件资源