[MDEV-15150] Error using "IF EXISTS" clause on DROP FUNCTION Created: 2018-01-31 Updated: 2018-02-05 Resolved: 2018-02-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Admin statements |
| Affects Version/s: | 10.1.30 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | David Villalobos Cambronero | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux, Mageia, 64 bits |
||
| Attachments: |
|
| Description |
|
Execute: "DROP FUNCTION IF EXISTS `UTN_EnvioCorreo`;" and the function does not exists show the error: "Could not execute statement. Error: 1728 Cannot load from mysql.proc. The table is probably corrupted" |
| Comments |
| Comment by Elena Stepanova [ 2018-01-31 ] | ||||||||||||||||||
|
Please run CHECK TABLE mysql.proc. | ||||||||||||||||||
| Comment by David Villalobos Cambronero [ 2018-01-31 ] | ||||||||||||||||||
|
Hi Elena, here is the output:
| ||||||||||||||||||
| Comment by Elena Stepanova [ 2018-01-31 ] | ||||||||||||||||||
|
And you are still getting that error after this?
| ||||||||||||||||||
| Comment by David Villalobos Cambronero [ 2018-01-31 ] | ||||||||||||||||||
|
Yes I still get the error.
| ||||||||||||||||||
| Comment by Elena Stepanova [ 2018-01-31 ] | ||||||||||||||||||
|
Okay, that's a bit of a mystery, on many levels. For one, your error log looks like you have a rather high log_warnings level, but nothing in the config file hints at that. Possible it's the only file, or not the only file, that the server actually uses. If that's the possibility, SHOW GLOBAL VARIABLES might help. The partial error log is not particularly helpful, because the important part – server startup – is missing. Can you add a bigger portion, which includes at least the latest server start? Could you please also paste the output of SHOW CREATE TABLE mysql.proc? And if possible, attach mysql/proc.frm, mysql/proc.MYI, mysql/proc.MYD. If you are worried that it might contain confidential information, then at least .frm (it's just the structure). Was this instance upgraded from some other version of MariaDB/MySQL/whatever? | ||||||||||||||||||
| Comment by David Villalobos Cambronero [ 2018-01-31 ] | ||||||||||||||||||
|
I attached the requested files, the error log is complete, I mean, I just Copy & Paste the whole file. It is the default MariaDB version that comes with Mageia 6 64Bits Hope it helps. configFile.tar.gz | ||||||||||||||||||
| Comment by Elena Stepanova [ 2018-02-05 ] | ||||||||||||||||||
|
It does help, thanks. | ||||||||||||||||||
| Comment by David Villalobos Cambronero [ 2018-02-05 ] | ||||||||||||||||||
|
Hi Elena, mysql_upgrade --force fix the problem, sorry for your time and the false bug report. Best regards |