我在 Windows 计算机上找不到 my.cnf

2021-11-20 00:00:00 configuration mysql privileges

我的电脑是 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

相关文章