Error: Error executing query: SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION alloc.can_edit_rate does not exist Error: Query failed: 42000 1305 SELECT can_edit_rate(1,0) as allow
Hi, restored db after some maintenance [ mysql alloc < allocbak.sql ] and am now getting below error, have I not got some functions captured and then restored in my backup?
Backed up using mysqldump alloc > allocbak.sql
Thanks.
Error: Error executing query: SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION alloc.can_edit_rate does not exist
Error: Query failed: 42000 1305 SELECT can_edit_rate(1,0) as allow
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The procedures/functions that are a part of the alloc database didn't get backed up when you used mysqldump. Use --routines when dumping, or just manually reimport the installation/db_triggers.sql file that is in the alloc source code. It is safe to just reimport that one file.
Cheers,
Alex Lance
allocPSA.com
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, restored db after some maintenance [ mysql alloc < allocbak.sql ] and am now getting below error, have I not got some functions captured and then restored in my backup?
Backed up using mysqldump alloc > allocbak.sql
Thanks.
The procedures/functions that are a part of the alloc database didn't get backed up when you used mysqldump. Use --routines when dumping, or just manually reimport the installation/db_triggers.sql file that is in the alloc source code. It is safe to just reimport that one file.
Cheers,
Alex Lance
allocPSA.com
Thanks for yor quick response Alex!
Got this
Hi Wally, no worries. Is there a reminder table? Does your backup/dump file have a reminder table in it?
Yes it did.
What worked was this sequence, first load structure, triggers, constraints, then my dump.
Love allocPSA, thanks for your great work it is marvelous.
Ah cheers, good stuff. Thank you!