Loading... > 环境:<br>CPU&内存4核(vCPU)8 GiB <br> Windows Server 2016 数据中心版 64位中文版 ![系统信息](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/1dd79839512547458f7d12e92f014b9d.png) ## 安装 1. 双击安装包 ![安装界面](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/64113a6e1ffa4936a6dd075513f1b66b.png) 2. 选择 Server Only(服务端) -> 点击【Next】按钮 ![服务端](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/83a0d2c5424d4d4f859445fd9381b336.png) 3. 检查安装环境 -> 点击【Execute】按钮 ![环境1](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/1d6d22c98b9a454ca0b446ee4c5f5b0e.png) ![环境2](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/1b41c22b0a534a9cb40ec1b71ae28fdb.png) ![环境3](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/5c7e5b3d66c449c382e5fc4a53f611f5.png) 4. 点击【Next】按钮 ![MySQl5.7](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/48c4d91d4156460e92e2bddfef8728b6.png) 5. 点击【Execute】按钮 ![等待1](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/0b58400a1c744441a5671249ffbeff30.png) ![进度条](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/9c84a55d4a824664a9549321fef67b47.png) 6. 点击【Next】按钮 ![Done](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/ad1b47512cb1477891d172a42851f6bc.png) 6. 点击【Next】按钮 ![Done](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/b9318cc7717c4221abaedd925f03842e.png) 7. 配置端口和服务类型 -> 点击【Next】按钮 ![TypeAndPort](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/727fb666f7d54cf5acce312c1f096198.png) ![Next](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/0b5810de0ddd4377871f9c9fa1669bcc.png) 8. 配置Root密码 -> 点击【Next】按钮 ![Root密码](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/79366d0d883e4a9f9e98960499e2b54c.png) 9. 配置服务项 -> 点击【Next】按钮 ![配置服务项](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/19bbe34d941a447082d6c9057af6d77f.png) 10. 配置服务文件权限 -> 点击【Next】按钮 ![文件权限](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/bbb2c863ae594d73a88c07ff1ffdaad9.png) 11. 点击【Execute】按钮 ![Next](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/2f46596923124e5fa9c4cd6e057d10a3.png) 12. 等待片刻 ![late](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/4894cfd078914924a2a8e7876e74f9e5.png) 13. 安装完成 ![](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/7bfea147388a47d9857b2c9f5da4c7c3.png) 14. 点击【Next】按钮 ![](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/5e13d24dfbd8443f92cf34dada683cbd.png) 15. 点击【Finsh】按钮关闭窗口 ![Finsh](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/fbbcb18b7c63447d9d8bddb9c0b97fc1.png) 16. 检查是否正常运行 ![MySQLRun](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/97e481a87e8f4e16859587a2ca1cd422.png) ## 连接 > 远程连接需要设置防火墙规则,本地连接不需要配置 1. 本地连接测试,在本地使用root用户进行登录 使用命令行登录测试: ![Command Line Client](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/417021643c7c4428aad9012be26f7b9d.png) 使用数据库管理软件测试: ![Navicat](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/7081c3512bd142be98dd6a31c89375ba.png) 2. 创建数据库和用户,进行远程访问 创建一个名为user0002的数据库 ```sql create databases user0002; ``` ![创建数据库](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/9c1100d435e446818c56387ec013a2a2.png) 创建一个名为user0002的用户 并设置为可远程访问的 关键字 % 并将user0002数据库全部操作权限授权给该用户 ```sql CREATE USER `user0002`@`%` IDENTIFIED BY 'user0002'; GRANT Alter, Alter Routine, Create, Create Routine, Create Temporary Tables, Create View, Delete, Drop, Event, Execute, Grant Option, Index, Insert, Lock Tables, References, Select, Show View, Trigger, Update ON `user0002`.* TO `user0002`@`%`; ``` 刷新权限 ```sql flush privileges; ``` ![RemoteMySQL](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/e3165243bf1545c4b5da2139954fc412.png) ![Success](https://hwcloud.sdqps.top/ShareImages/PicGo/20230827/1ed36ba3454840d3a41004d6e23f6770.png) 最后修改:2023 年 08 月 27 日 © 允许规范转载 打赏 赞赏作者 赞 如果觉得我的文章对你有用,请随意赞赏
此处评论已关闭