版本:mysql-5.6.12 解压版 无需安装 (Community Server版)
<wbr><wbr>以管理员身份打开cmd,进入到mysql的bin目录下,如图4</wbr></wbr>
安装mysql
将解压后的文件放在指定目录下,如图1
图1
<wbr><wbr></wbr></wbr>
<wbr><wbr>添加对应的环境变量,如图2,</wbr></wbr>
![mysql-5.6.12<wbr>下载安装](https://i-blog.csdnimg.cn/blog_migrate/71a7a1c808cdee107d33d58c1122d04e.jpeg)
图3
<wbr><wbr>以管理员身份打开cmd,进入到mysql的bin目录下,如图4</wbr></wbr>
<div style="color: rgb(73, 73, 73); font-family: simsun; font-size: 14px; line-height: 21px;>
图4
<wbr><wbr>输入服务安装命令:</wbr></wbr>
<wbr><wbr><wbr><wbr>mysqld</wbr></wbr></wbr></wbr>install MySQL
--defaults-file="E:\Program Files\mysql-5.6.12-winx64\my-default.ini"
<wbr><wbr>安装成功后会提示:"Service successfully installed" 字样</wbr></wbr>
<wbr><wbr>若要移除服务,直接键入:mysqld remove</wbr></wbr>
<wbr><wbr></wbr></wbr>
<wbr><wbr>启动服务</wbr></wbr>
<wbr><wbr>a、cmd(管理员身份):net start mysql\net stop mysql</wbr></wbr>
<wbr><wbr>b、打开管理工具服务,找到Mysql服务,手动打开(或 由services.msc命令进入)</wbr></wbr>
<wbr><wbr></wbr></wbr>
<wbr><wbr>安装完成的root账号没有密码,可自行设置(或用第三方管理工具进行密码设置)</wbr></wbr>
<wbr><wbr>:>mysql -u root<wbr></wbr></wbr></wbr>
<wbr><wbr>mysql>show databases;<wbr></wbr></wbr></wbr>
<wbr><wbr>mysql>use mysql;<wbr></wbr></wbr></wbr>
<wbr><wbr>mysql>UPDATE user SET password=PASSWORD("sa") WHERE user='root';<wbr></wbr></wbr></wbr>
<wbr><wbr>mysql>FLUSH PRIVILEGES;<wbr></wbr></wbr></wbr>
<wbr><wbr>mysql>QUIT</wbr></wbr>
<wbr><wbr></wbr></wbr>
<wbr><wbr>测试,图5为本地链接,图6为远程链接,黄色部分为链接的IP地址<br></wbr></wbr>
图6