Wishlist 0 ¥0.00

windows安装MySQL 9.0以及bug解决——启动失败和拒绝root登录

前言

记录在Windows上安装MySQL9.0遇到的一些bug。主要包括两个问题:
starting the server失败,mysql无法启动的情况
Access denied for user ‘root’@‘localhost’ ,拒绝root账号登录

 

 

下载

官网地址:https://dev.mysql.com/downloads/mysql/
版本:9.0.1

安装

  1. 按照步骤安装
  2. 类型选择Custom,自定义安装路径。默认安装在C盘。
    在这里插入图片描述
  3. 等进入MySQL configuration。配置mysql数据储存地址
    在这里插入图片描述
  4. 配置端口。默认3306
    在这里插入图片描述
  5. 设置root密码,以及配置新的用户
    在这里插入图片描述
  6. 配置服务名,建议改成mysql,用其他名称容易忘记。

net start mysql
net stop mysql
若你的服务名不是mysql,使用启动和关闭命令时,将mysql换成对应的服务名即可。
在这里插入图片描述

  1. 下一步直到完成

配置Path路径

将刚安装成功的MySQL添加到Path路径中。
在这里插入图片描述

安装过程中遇到的问题

在安装过程中,在starting the server失败。

在这里插入图片描述
解决方案:更改MySQL的登录选项。更改完之后再重新执行
在我的计算机管理,找到服务选项,选择MySQL。
在这里插入图片描述
右键选择属性
在这里插入图片描述

不能登录mysql,拒绝root账户登录

分析:先遇到上面那个问题,在遇到的这个问题,应该是初始化的时候创建不成功。
在这里插入图片描述

解决方案:卸载重装,在安装步骤点击执行之前,先更改MySQL的登录选项。

About Us

Since 1996, our company has been focusing on domain name registration, web hosting, server hosting, website construction, e-commerce and other Internet services, and constantly practicing the concept of "providing enterprise-level solutions and providing personalized service support". As a Dell Authorized Solution Provider, we also provide hardware product solutions associated with the company's services.
 

Contact Us

Address: No. 2, Jingwu Road, Zhengzhou City, Henan Province

Phone: 0086-371-63520088 

QQ:76257322

Website: 800188.com

E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.