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>
卸載
停止服務
右鍵停止服務
//移除操作
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 目錄刪除