zoukankan      html  css  js  c++  java
  • [Err] 1449

    晚上加班调用一个远程拷贝的本地Mysql的储存过程,报错:[Err] 1449 - The user specified as a definer ('admin_isbox'@'localhost') does not exist

    凭借以前经常见到的root@localhost报错,给root赋值所有权限:

    grant all privileges on *.* to root@"%" identified by ".";

    flush privileges;

    发现无效。

    可能数据库没有此用户:

    select user,host from mysql.user;

    没找到此用户,但是报错出现了这个用户。寻求谷歌后,找到解决方法:

    SELECT definer,type FROM mysql.proc GROUP BY definer,type;
    UPDATE mysql.proc SET definer='root@localhost' WHERE definer = '*username*@localhost';

    重启数据库,OK

  • 相关阅读:
    3.2.8.1 打印与否
    3.2.8 sed 的运作
    3.2.7.1 替换细节
    3.2.7 基本用法
    3.2.6 在文本文件里进行替换
    3.2.5 程序与正则表达式
    pgm2
    pgm6
    pgm7
    pgm8
  • 原文地址:https://www.cnblogs.com/suncoolcat/p/3343306.html
Copyright © 2011-2022 走看看