当前位置: 首页 > news >正文

广州网站建设报价黄冈网络推广服务平台

广州网站建设报价,黄冈网络推广服务平台,互联网高端官网,百度网站前面的图片方法一:通用方法--启动时跳过权限表 1> 停止数据库 以管理员方式打开cmd!! C:\Users\Administrator>net stop mysql MySQL 服务正在停止.. MySQL 服务已成功停止。 2> 启动时跳过权限表 mysqld --console --skip-grant-tables -…

方法一:通用方法--启动时跳过权限表

1> 停止数据库

以管理员方式打开cmd!!

C:\Users\Administrator>net stop mysql

MySQL 服务正在停止..

MySQL 服务已成功停止。

2> 启动时跳过权限表

mysqld --console --skip-grant-tables --shared-memory

C:\Users\Administrator>mysqld --console --skip-grant-tables --shared-memory

注意:不要关闭终端

3> 重开新的终端(再开一个终端),登录并设置新密码

PS C:\Users\Administrator> mysql -uroot -p

Enter password: 直接敲回车键

mysql> flush privileges;

mysql> alter user root@localhost identified by '123456'; //重置密码

4> 退出MySQL,关闭第一个终端,正常启动服务。

mysql> \q

PS C:\Users\Administrator> net start mysql

MySQL 服务正在启动 ..

MySQL 服务已经启动成功。

PS C:\Users\Administrator> mysql -uroot -p123456

mysql: [Warning] Using a password on the command line interface can be insecure.

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

Your MySQL connection id is 8

Server version: 8.0.36 MySQL Community Server - GPL

Copyright (c) 2000, 2024, Oracle and/or its affiliates.

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> \q

Bye

方法二:参考官方文档

1> 停止服务

PS C:\Users\Administrator> net stop mysql

MySQL 服务正在停止.

MySQL 服务已成功停止。

2> 创建一个文本文件到mysql文件夹里,保存为 mysql_init.txt ,内容如下:

ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';

3> 启动同时使用上一步文件修改密码

要求管理员身份打开cmd来运行命令,暂时不要关闭终端:

C:\Users\Administrator>mysqld --init-file= F:\mysql\mysql-8.0.36-winx64\mysql_init.txt

(具体路径复制粘贴)

4> 打开另一个终端,登录测试

PS C:\Users\Administrator> mysql -uroot -p123456

mysql: [Warning] Using a password on the command line interface can be insecure.

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

Your MySQL connection id is 9

Server version: 8.0.36 MySQL Community Server - GPL

Copyright (c) 2000, 2024, Oracle and/or its affiliates.

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> \q

Bye

5> 关闭第一个终端,正常启动服务。

C:\Users\Administrator>net start mysql

MySQL 服务正在启动 ..

MySQL 服务已经启动成功。

C:\Users\Administrator>mysql -uroot -p123456

mysql: [Warning] Using a password on the command line interface can be insecure.

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

Your MySQL connection id is 8

Server version: 8.0.36 MySQL Community Server - GPL

Copyright (c) 2000, 2024, Oracle and/or its affiliates.

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> \q

Bye

6> 删除文件 mysql_init.txt

http://www.yayakq.cn/news/895922/

相关文章:

  • 做电影网站 广告收入徐州网站设计网
  • 北京网站优化培训提供企业网站建设方案
  • 美发店网站源码wordpress模板中文版
  • 哈尔滨定制网站建设永嘉高端网站建设价格
  • 怎么在新建网站上做分享代码汽车网站页面布局设计
  • 做网站最有名的公司建设一个营销网站有哪些步骤
  • 网站设计思路方案牛皮纸东莞网站建设技术支持
  • 网站建设沙漠风做网站jsp好还是
  • 网站开发好什么进行界面的优化制作网站需要什么语言
  • 如何快速提高网站排名宝塔面板一键部署wordpress打不开
  • 温州鹿城区企业网站搭建太仓市住房城乡建设局网站
  • 成都私人做网站.net开发微信网站
  • 妹妹强迫我和她做网站网站下载链接打不开
  • 旅游网站建设模板下载凡科网做网站能达到什么效果
  • 网站建设图片怎么调wordpress doc嵌入
  • 网站建设的风险预测桥头网站仿做
  • 宜黄住房和城乡建设部网站网站开发公司特点
  • 网站建设的主要功能及定位手机必备20个软件
  • 永康新站优化设计公司logo要多少钱
  • 好用的h5网站模板上海网用软件有限公司
  • 个人网站模板怎么用NET网站开发工程师网站招聘
  • 网站建设的要求有哪些app怎么创建
  • 沈阳建设企业网站代做毕设的网站
  • 个人网站设计毕业设计论文凡科网电脑版怎么做网站
  • 公司网站注销湖北勘察设计协会
  • 最超值的赣州网站建设php网站登录系统怎么做
  • 网站设计评价指标有没有免费的企业网站建设
  • 汉南公司网站建设gofair做网站
  • 嵊州市住房和建设局网站网络公司排名中国
  • 闵行做网站费用万网搜