zoukankan      html  css  js  c++  java
  • mysql 8 修改root 密码

    主要参考:https://dev.mysql.com/doc/refman/8.0/en/resetting-permissions.html

    需要注意的是创建文件的时候需要保存为 utf-8 无 BOM格式的不然容易报错。

    C:Usersesen>mysqld --defaults-file="C:ProgramDataMySQLMySQL Server 8.0my.ini" --init-file="D:mysql-inital-file.txt" --console 2018-08-07T08:58:48.796734Z 0 [System] [MY-010910] [Server] C:Program FilesMySQLMySQL Server 8.0inmysqld.exe: Shutdown complete (mysqld 8.0.11)  MySQL Community Server - GPL.
    
    2018-08-07T08:58:54.366103Z 0 [Warning] [MY-011071] [Server] option 'read_buffer_size': unsigned value 0 adjusted to 8192
    2018-08-07T08:58:54.366135Z 0 [Warning] [MY-011071] [Server] option 'read_rnd_buffer_size': unsigned value 0 adjusted to 1
    2018-08-07T08:58:54.366184Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
    2018-08-07T08:58:54.368433Z 0 [System] [MY-010116] [Server] C:Program FilesMySQLMySQL Server 8.0inmysqld.exe (mysqld 8.0.11) starting as process 7548
    2018-08-07T08:58:56.136588Z 0 [ERROR] [MY-011071] [Server] Can't open shared library 'C:Program FilesMySQLMySQL Server 8.0libpluginmysqlx' (errno: 126 找不到指定的模块。)
    2018-08-07T08:58:56.139291Z 0 [ERROR] [MY-010736] [Server] Couldn't load plugin named 'mysqlx' with soname 'mysqlx'.
    2018-08-07T08:58:57.134929Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
    2018-08-07T08:58:57.218333Z 6 [ERROR] [MY-011071] [Server] 1064  You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '锘緼LTER USER 'root'@'localhost' IDENTIFIED BY 'Rt_Passwd8' ;' at line 1
    2018-08-07T08:58:57.223875Z 0 [System] [MY-010931] [Server] C:Program FilesMySQLMySQL Server 8.0inmysqld.exe: ready for connections. Version: '8.0.11'  socket: ''  port: 3306  MySQL Community Server - GPL.
    2018-08-07T08:59:21.341168Z 0 [System] [MY-013105] [Server] C:Program FilesMySQLMySQL Server 8.0inmysqld.exe: Normal shutdown.
    ^C
    C:Usersesen>2018-08-07T08:59:23.713308Z 0 [System] [MY-010910] [Server] C:Program FilesMySQLMySQL Server 8.0inmysqld.exe: Shutdown complete (mysqld 8.0.11)  MySQL Community Server - GPL.
    
    
    C:Usersesen>

    应该是Window 保存文本格式事件添加字符的原因。

  • 相关阅读:
    redis 储存对象
    redis key 查看器
    c# 控制台程序编写RabbitMQ 生产者
    C# 使用Topshelf 构建 基于 window 服务的 RabbitMQ消费端
    asp.net webapi 使用定时任务Hangfire
    asp.net webpi 中使用 ClientHelper 发起HTTP请求
    SQL Server 导入和导出向导 未在本地计算机上注册Mircrosoft.ACE.OLEDB.12.0 提供程序
    c# 使用Linq 表达式 对查询结果分组,保留价格最低的一条
    Asp.Net s请求报传输流收到意外的 EOF 或 0 个字节
    asp.net webapi 中使用rdlc 报表
  • 原文地址:https://www.cnblogs.com/Alex-Zeng/p/9438136.html
Copyright © 2011-2022 走看看