mysql frm权限,将“ x.frm”重命名为“ y.frm”时出错-错误代码:13-权限被拒绝-MySQL...

2023-11-02

Ok, I know there is so many questions about this issue but, since I could not find a answer to solve my problem (I tried so many many many workarounds!!) and it made me to waste 4 hours of my work, and now I found where my problem were in, I would like to share and keep here also for my own future reference.

The problem

Error on rename of '.\db_testes\#sql-1f1c_1a.frm' to '.\db_testes\alteracaocrono_ateste.frm' (Errcode: 13 - Permission denied) that was happening when creating an index in a MySQL table just after to create it.

Why is this SO strange?

1. Because it was happening in a script were I had so many others 'create table's and 'create index' that were working fine just before the error happen;

2. Because everytime I tried it after cleaning the database to run it again, that error occurred in a different place, a different index each time!;

3. Because all folders related to MySQL had FULL-CONTROLL permissions for 'everybody' (I was desperate, I know);

Checking perror 13 I was getting 'Win32 - the data is invalid'. No much informative at all.

What I had tried

Change the tmpdir of MySQL (in mysql.ini) to c:\temp (unfortunately, I have to use windows to programming in my work!);

Change all the data folder and all mysql folder;

So many restarts (for the sake the Windows way to exist);

Remove and reinstall MySQL in a different folder;

Change permissions to full-controll in tmpdir and mysql data folders;

Please, see my answer to know how I solved it.

解决方案

Solution

Finally, what solved the problem to me was: change the index name!

But wait, the name was not repeated! I had looked for it right in the first time! And it also was not too long! It was similar to others in the same script. It *had not special chars!** It was something like IX_TAB_ABC_123. So, how in the world would somebody to guess what the problem was??. For some reason, MySQL just didn't like the name I pick but it did not let me know why!!

My conclusion

When you make a software, please, dont be stupid! Put significative error messages on it! By "significative" I mean clear and objective error messages pointing the exact problem, the reason and, when possible, the solution. The world will be a better place if you just do it, believe me!

Hope it helps anybody else having this stupid problem!

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

mysql frm权限,将“ x.frm”重命名为“ y.frm”时出错-错误代码:13-权限被拒绝-MySQL... 的相关文章

  • vue+element实现删除功能

    vue element实现删除功能 文章目录 vue element实现删除功能 一 api文件夹中编写api接口 二 编写删除按钮 三 使用api文件夹中的接口 总结 一 api文件夹中编写api接口 代码如下 export functi
  • win10更新出错0x80070422的解决方案

    问题 一般我们进行win10系统的更新 步骤是到win10设置 然后找到windows 更新 然后点击开启更新 有的时候 你会发现不能更新一直报错0x80070422 如下图 图一 图二 问题的原因 这是因为windows update 启
  • horizon服务主要模块_Openstack入门篇(十四)之horizon服务的部署与测试

    提供一个web界面操作openstack的系统 使用Django框架基于openstack API开发 支持将session存储在DB memcached 支持集群 tips 创建虚拟机的方法 horizon api 命令行 服务未启动 不
  • js将变量值作为对象的key使用

    var a aaa var obj a valueA bbb valueB console log obj aaa valueA console log obj a valueA console log obj bbb valueB con
  • 内网安全之:Windows 密码抓取

    郑重声明 本笔记编写目的只用于安全知识提升 并与更多人共享安全知识 切勿使用笔记中的技术进行违法活动 利用笔记中的技术造成的后果与作者本人无关 倡导维护网络安全人人有责 共同维护网络文明和谐 Windows 密码抓取 1 mimikatz
  • 第一章 ROS基础

    第一章 ROS基础 ROS系列学习 总章目录 第一章 ROS基础 第二章 ModelArts数据处理 第三章 ModelArts模型训练 第四章 ModelArts模型转换 第五章 HiLens模型管理 第六章 HiLens技能部署 第七章
  • 机器学习笔记-回归评价指标scikit-learn

    scikit learn中回归指标 from sklearn metrics import mean squared error 均方误差MSE from sklearn metrics import mean absolute error
  • 关于区块链电子发票

    2018年8月10日 国家税务总局深圳市税务局与腾讯联合开出全国首张区块链电子发票 一年时间过去 区块链电子发票已覆盖100多个行业 接入企业超过6000家 开具区块链电子发票累计超过700万张 总开票金额达近百亿元 与此同时 腾讯区块链从
  • 给anaconda的python安装gdal

    版权声明 转载请注明作者 独孤尚良dugushangliang 出处 https blog csdn net dugushangliang article details 96891361 之前有写过相关文章 各有侧重 现在更新最新版 下载
  • Kettle使用jndi

    kettle可以使用jdbc的方式设置job或者tansform的数据库连接 但是 同时它也支持JNDI方式连接数据库 后者更加方便 只需要配置一份配置文件就可以了 不用每个DBConnection都配置一遍 具体使用方法如下 1 在dat
  • windows下U盘格式化

    问题 安装ubuntu系统镜像之后 Windows系统无法正常识别出U盘完整的容量大小 原因 安装Ubuntu镜像后 U盘被分为多个分区 而 Windows此时只能识别出U盘第一个系统启动分区 解决方法 home x打开磁盘管理 选择相应的
  • 定义Boat与Car两个类,二者都有weight属性,定义二者的一个友元函数getTotalWeight, 计算二者的重量之和

    include
  • JqGrid 获取增删改的返回值

    我们使用JqGrid获取查询的数据已经很熟练了 但是有的时候增删改也有返回值 比如返回错误信息如 不要重复添加 无法删除等等 这个时候我们就要用到 afterComplete 这个配置了 核心代码如下 navGrid pager add t
  • 无人驾驶实战(二)——TensorFlow实现基于 LeNet5 网络的交通标志识别

    引言 交通标志是道路基础设施的重要组成部分 它们为驾驶员及行人提供了道路行驶关键信息 并要求驾 驶员及时调整驾驶行为 以确保遵守道路安全规定 无人驾驶车辆同样必须遵守交通法规 因此它需要识 别和理解交通标志 一般来说 我们可以使用计算机视觉
  • Oracle RESETLOGS 和 NORESETLOGS 区别说明

    Oracle RESETLOGS 和 NORESETLOGS 区别说明 一 创建控制文件时 Resetlogs和Noresetlogs 当我们将控制文件备份到trace 文件时 可以看到里面包含了2部分的重建语句 一个是使用resetlog
  • java的编码风格_Java良好的编码风格(一)

    编程规约 一 命名规约 强制 代码中的命名均不能以下划线或美元符号开始 也不能以下划线或美元符号结束 反例 name name Object name name Object 强制 类名使用 UpperCamelCase 风格 必须遵从驼峰
  • 微信小程序-mpvue-下拉加载,上滑刷新无法触发onReachBottom,onPullDownRefresh

    遇到的坑 记录一下 问题 onReachBottom onPullDownRefresh无法触发 解决办法 需要将onReachBottom onPullDownRefresh放到与methods同级的位置 否则无法触发 具体使用方法 第一
  • 实现动态页面的技术:Servlet

    Hello 我是栋zzzz 为了能够更好的学习Servlet 我给大家整理了一些前置知识 方便更好的理解Servlet HTTP协议 上 HTTP协议 下 Tomcat 目录 一 Servlet 1 maven 1 1 创建maven项目
  • 史上最全Windows10安装ubuntu18.04双系统教程

    前言 本教程主要是在Windows 10 上安装Ubuntu18 04 64位 双系统教程 本文综合了自己多次安装Ubuntu双系统的经验 避免大家踩坑 一 准备工作 这里是安装前需要做的一些准备工作 包括镜像下载 安装软件 制作U盘启动盘

随机推荐