功能dbname.functionname不存在

时间:2015-11-06 09:38:09

标签: mysql

我收到以下错误:

application.enableevents = true

在MySQL 5.6数据库上执行以下INSERT语句时

Private Sub Worksheet_Change(ByVal Target As Range)
    ' exit immediately on row insertion
    If Target.CountLarge >= Columns.Count Then Exit Sub

    If Not Intersect(Target, Columns(1)) Is Nothing Then
        'escape route
        On Error GoTo bm_Safe_Exit

        'don't declare or Set anything until you know you will need it
        '(this isn't really terribly necessary)
        Dim KeyCells As Range
        Set KeyCells = Range("A:A")

        If Application.CountA(KeyCells) Then 'is there ANYTHING in A:A?
            Application.EnableEvents = False
            Call SortByDate
        End If

    End If
bm_Safe_Exit:
    Application.EnableEvents = True
End Sub

声明

FUNCTION dbname.fnname does not exist

显示没有触发器。

表定义是

INSERT INTO `fallimenti` (`annoInserimento`, `pk`, `id`, `nome`, `nomeNormalizzato`, `indirizzo`, `citta`) VALUES ('2015', '12345', NULL, 'TEST', '', 'TEST', 'TEST')

1 个答案:

答案 0 :(得分:0)

我找到了罪魁祸首。有一个INSERT TRIGGER调用一个不存在的函数。

我无法从我的数据库用户帐户中看到此触发器,因为此类用户没有TRIGGER权限。

触发器存在是因为它是由Plesk创建的,可能是使用MySQL root用户,在从另一台具有官方迁移功能的服务器转移过程中。转移代理。肯定是Plesk的一个错误(已报告),它错过了在服务器之间传输权限和例程。