I can not find my.cnf on my windows computer(我在 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
这篇关于我在 Windows 计算机上找不到 my.cnf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:我在 Windows 计算机上找不到 my.cnf


- 在SQL中,如何为每个组选择前2行 2021-01-01
- 以一个值为轴心,但将一行上的数据按另一行分组? 2022-01-01
- 更改自动增量起始编号? 2021-01-01
- 如何将 Byte[] 插入 SQL Server VARBINARY 列 2021-01-01
- 如何使用 pip 安装 Python MySQLdb 模块? 2021-01-01
- 远程 mySQL 连接抛出“无法使用旧的不安全身份验证连接到 MySQL 4.1+"来自 XAMPP 的错误 2022-01-01
- 导入具有可变标题的 Excel 文件 2021-01-01
- 如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql 2022-01-01
- 使用 Oracle PL/SQL developer 生成测试数据 2021-01-01
- SQL 临时表问题 2022-01-01