欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Windows版MYSQL5.7安装(压缩包版)

程序员文章站 2024-03-21 17:32:40
...

Windows版MYSQL5.7安装

下载MySQL文件(解压版)
下载地址https://dev.mysql.com/downloads/mysql/

PS D:\motui\mysql\bin> mysqld --initialize-insecure --user=mysql
PS D:\motui\mysql\bin> mysqld install
Service successfully installed.
PS D:\motui\mysql\bin> net start mysql
MySQL 服务正在启动 .
MySQL 服务已经启动成功。

PS D:\motui\mysql\bin> mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.7.19-log MySQL Community Server (GPL)

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> exit
Bye
PS D:\motui\mysql\bin>

卸载
停止服务
Windows版MYSQL5.7安装(压缩包版)
右键停止服务

//移除操作
PS D:\motui\mysql\bin> mysqld -remove MySQL
Service successfully removed.
PS D:\motui\mysql\bin>

删除注册表:
cmd打开regedit
删除以下目录即可
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL 目录删除

相关标签: mysql windows