How to Solve MySQL Error Message : ERROR 1548 (HY000) at line 1: Cannot load from mysql.proc. The table is probably corrupted

Posted on

This article specifically written to solve the error message generated upon adding a new user in MySQL Database. The error specified is shown in the following :

ERROR 1548 (HY000) at line 1: Cannot load from mysql.proc. The table is probably corrupted

The error itself is actually happened as shown in the following output generated after executing a command or an SQL Query for adding a new user :

root@hostname:~# mysql -uroot -p 
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.MyMy
Your MySQL connection id is 1267
Server version: 5.7.20 MySQL Community Server (GPL)

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> add user 'myuser'@'%' identified by 'mypassword';
ERROR 1548 (HY000) at line 1: Cannot load from mysql.proc. The table is probably corrupted

So, in order to solve the problem above, the solution is simple. Just execute the following command :

mysql_upgrade -uroot -p

The following is the output of the command :

root@hostname:~# mysql_upgrade -uroot -p 
...
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.general_log
Error    : You can't use locks with log tables.
status   : OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.host                                         OK
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.servers                                      OK
mysql.slow_log
Error    : You can't use locks with log tables.
status   : OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
Running 'mysql_fix_privilege_tables'...
OK
...
Upgrade process completed successfully.
Checking if update is needed.
root@hostname:~# 

This is the output after updating MySQL Database but in order to check whether the update process has been successfully carried out, re-execute the command :

root@hostname:~# mysql_upgrade -uroot -p
Enter password:
Checking if update is needed.
This installation of MySQL is already upgraded to 5.7.20, use --force if you still need to run mysql_upgrade
root@hostname:~#

After finishing the upgrade process through the execution of the above command, just add a new user based on the above query command executed before as shown below :

mysql> add user 'myuser'@'%' identified by 'mypassword';
Query OK, 0 rows affected (0,02 sec)

 

Leave a Reply