我在 Windows 计算机上找不到 my.cnf [英] I can not find my.cnf on my windows computer

查看:38
本文介绍了我在 Windows 计算机上找不到 my.cnf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的电脑是 Windows XP.

My computer is Windows XP.

我需要找到 my.cnf 才能将所有权限还给 root 用户.我不小心删除了root用户的一些权限.我还有密码,我以root用户登录MySQL没有问题.但我不能改变表格.

I need to find my.cnf to get all privileges back to the root user. I accidentally removed some privileges of the root user. I still have the password and there is no problem for me to log in to MySQL as the root user. But I can not alter a table.

推荐答案

这是我的答案:

  1. Win+R('run'的快捷方式),输入services.msc回车
  2. 您应该找到像MySQL56"这样的条目,右键单击它,选择属性
  3. 您应该会看到类似 "D:/Program Files/MySQL/MySQL Server 5.6/bin\mysqld" --defaults-file="D:\ProgramData\MySQL\MySQL Server 5.6\my.ini" 的内容MySQL56
  1. Win+R (shortcut for 'run'), type services.msc, Enter
  2. You should find an entry like 'MySQL56', right click on it, select properties
  3. You should see something like "D:/Program Files/MySQL/MySQL Server 5.6/bin\mysqld" --defaults-file="D:\ProgramData\MySQL\MySQL Server 5.6\my.ini" MySQL56

完整答案在这里:https://stackoverflow.com/a/20136523/1316649

这篇关于我在 Windows 计算机上找不到 my.cnf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆