我在 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.
推荐答案
这是我的答案:
- Win+R('run'的快捷方式),输入
services.msc
,回车莉> - 您应该找到像MySQL56"这样的条目,右键单击它,选择属性
- 您应该会看到类似
"D:/Program Files/MySQL/MySQL Server 5.6/bin\mysqld" --defaults-file="D:\ProgramData\MySQL\MySQL Server 5.6\my.ini" 的内容MySQL56
- Win+R (shortcut for 'run'), type
services.msc
, Enter - You should find an entry like 'MySQL56', right click on it, select properties
- 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
相关文章