当前位置:网站首页>本地计算机上的MySQL57服务启动后停止
本地计算机上的MySQL57服务启动后停止
2022-07-21 05:16:00 【Amy##】
问题背景:
在windows server 2019 通过msi 方式安装MYSQL5.7,没有更改datadir配置,可以正常启动,并设置为开机自启
但是服务器被重启后mysql 重启失败,手动进入到“服务”中启动,提示“本地计算机上的MySQL57服务启动后停止…………”
解决步骤:
在mysql 安装目录下(bin),使用命令 mysqld --console,发现以下问题:
can not create test file "C:\Program Files\MySQL\MySQL Server 5.7\data\XXX"
猜测是因为路径中的空格造成的,所以选择把datadir 修改掉:
找到C:\ProgramData\MySQL\MySQL Server 5.7 目录下的 my.ini 修改 datadir 指向,然后修改“服务”中mysql57 的可执行文件地址
修改方法:
运行(ctrl+R)->regedit
根据以下路径查找
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySQL57
找到imagePath,右键选择修改。
完成后重启MYSQL
再次 遇到问题,还是无法启动。上面说到我修改了datadir,所以需要去修改datadir的权限,添加“NETWORK SERVICE”的权限后,正常启动。
边栏推荐
- unity 自定义小工具之“图片去除mipmap”
- AtCoder Beginner Contest 218 题解
- Seventh week ACM training report
- 一个好用的Unity Touch管理器
- 第四周ACM训练报告
- D3D函数说明
- unity自定义工具之“导出AnimationClip”
- Cocos Creator 3. X draw sector mesh components
- Property analysis of matter protocol (II) multiple fabric and permission control
- 2020 popularization group summary
猜你喜欢
108. Convert an ordered array into a binary search tree
完成mysql数据库主从复制集群的搭建教程
第三周ACM训练报告
543. Diameter of binary tree
1046. Weight of the last stone
Redis哨兵机制及配置过程
19. Delete the penultimate node of the linked list
Which of these five special Bluetooth cores suits your application best
关于Hololens2上AssetBundle资源管理、热更新问题(个人Hololens2进阶开发小总结三)
Property analysis of matter protocol (II) multiple fabric and permission control
随机推荐
299. Guessing numbers game
力扣记录:动态规划5子序列问题(2)编辑距离——392 判断子序列,115 不同的子序列,583 两个字符串的删除操作,72 编辑距离
寒假学习总结
14. Longest common prefix
unity 自定义小工具之“图片去除mipmap”
2022acm summer training weekly report (III)
unity 锁定相机绕锁定目标的弧形运动
Force deduction record: dynamic programming 2 knapsack problem (2) complete knapsack - 518 change exchange II, 377 combination sum IV, 70 climbing stairs, 322 change exchange, 279 complete square numb
Take stones
108. Convert an ordered array into a binary search tree
HoloLens下载、读取与存储Json文件路径问题(个人Hololens2进阶开发小总结一)
ACM training report of the second week
力扣记录:动态规划5子序列问题(3)回文——647 回文子串,516 最长回文子序列
力扣记录:动态规划2背包问题(1)01背包——416 分割等和子集,1049 最后一块石头的重量II,494 目标和,474 一和零
9th week ACM training report
HoloLens读取和下载Json文件问题(个人Hololens2进阶开发小总结二)
代码修改模型的渐隐和渐现
Expression evaluation
一个好用的Unity Touch管理器
organize a team