
MySQL
记录在使用MySQL遇到的一些异常以及做的和MySQL相关的优化。
hi__study
这个作者很懒,什么都没留下…
展开
-
mysqldump异常:Got error: 1449: The user specified as a definer ('root'@'%') does not exist ......
在做mysql数据库备份的时候出现如下异常:然后,我查询了一下mysql库里的user表,的确是没有'root'@'%'的用户:select user,host from mysql.user;于是,将root的host字段改成'%',再刷新权限,即可:update mysql.user set host='%' where user='root'flush privi...原创 2020-04-02 16:59:02 · 3819 阅读 · 0 评论 -
MySQL创建函数异常:This function has none of DETERMINISTIC......
在MySQL8.0.19上创建函数,报错:ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe lo...原创 2020-04-02 11:54:52 · 628 阅读 · 0 评论