我的电脑是 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.
这是我的答案:
services.msc
,回车莉>"D:/Program Files/MySQL/MySQL Server 5.6/bin\mysqld" --defaults-file="D:\ProgramData\MySQL\MySQL Server 5.6\my.ini" 的内容MySQL56
services.msc
, Enter"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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!