mySQL存储函数问题

发布于 2024-08-21 02:03:16 字数 247 浏览 3 评论 0原文

我正在定义一个简单的存储函数,该函数在本地测试数据库中运行良好,但是当我尝试在“真实”服务器上创建它时,它只是没有添加到“proc”表中。我没有收到任何错误或任何错误,只是没有添加它(因此,该函数当然不能使用)。

两台服务器都使用相同的版本,我看不出“proc”表的结构之间有任何差异。

有什么想法吗?权限问题?

谢谢。

编辑:我尝试在 mysql-shell 而不是 phpMyAdmin 中创建该函数,这成功了。

I'm defining a simple stored function which works fine in my local testing database, but when I try to create it on the "real" server, it just doesn't get added to the 'proc'-table. I'm getting no errors or anything, it just doesn't get added (hence, the function can't be used of course).

Both servers are using the same version, and I can't see any differences between the structures of the 'proc'-tables.

Any ideas? A permission problem?

Thanks.

EDIT: I tried to create the function in the mysql-shell instead of in phpMyAdmin, and that did the trick.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

同尘 2024-08-28 02:03:16

尝试检查错误日志文件:在 Windows 上通常为 /mysql.err,在 Unix 上通常为 /hostname.err。

要调试权限问题,请运行“SELECT * FROM user where host='hostname' and user='username'”。有关此内容的更多信息此处< /a>

Try checking in the error log file: usually /mysql.err on Windows, /hostname.err on Unix.

To debug permissions issues, run "SELECT * FROM user where host='hostname' and user='username'". More information on this here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文