mysql57服务和mysql_本地计算机上的MySQL57服务已启动,然后停止
发布日期:2021-06-24 12:47:20 浏览次数:2 分类:技术文章

本文共 1102 字,大约阅读时间需要 3 分钟。

bd96500e110b49cbb3cd949968f18be7.png

When I try to start my SQL server, a message pops up saying that it starts but then stops. This happened after a restart on my server.

Does anyone know how I can fix this?

zmkJB.jpg

解决方案

Make sure that the data directory has full permissions set for users "Network Service" and Administrator and that you have quotes around the name of the directory if there are spaces in it. Make sure that basedir is set / not commented out.

I tested these things by changing the data directory, which re-caused the error you describe above exactly, then fixed the permissions of the newly created data directory to eliminate the error. I can switch back and forth now my changing which data directory I comment out. (only as a test, otherwise that's kind of nuts).

C:\ProgramData\MySQL\MySQL Server 5.7\my.ini Should be something like this, using Windows 2012 R2 server to test:

# Path to installation directory. All paths are usually resolved relative to

this.

basedir="C:/Program Files/MySQL/MySQL Server 5.7/"

# Path to the database root

# datadir="C:/ProgramData/MySQL/MySQL Server 5.7/Data"

datadir="d:/ProgramData/Data"

转载地址:https://blog.csdn.net/weixin_32823555/article/details/113124090 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:mysql远程端口_MySql的远程访问和远程端口开放方法
下一篇:mysql成批删除c语言_C语言操作mysql 添加、删除、修改、查询实例

发表评论

最新留言

路过,博主的博客真漂亮。。
[***.116.15.85]2024年04月19日 03时10分07秒