Archive
Archive for the ‘MySQL’ Category
ERROR 1307 (HY000) at line 31: Failed to CREATE PROCEDURE
October 23, 2011
Leave a comment
I recently crashed my database by importing a database backup created with mysqldump with the option –all-databases. Before importing I sensed I may be heading for rough waters but I had no idea. First, all my users were overwritten. I was able to recover from that easily by resetting the passwords.
The next problem was even more difficult. I got the error ERROR 1307 (HY000) at line 31: Failed to CREATE PROCEDURE whenever I tried to create a new procedure. After doing a but of research I found the solution.
mysql_fix_privilege_tables --verbose --password=yourpassword
I then restarted mysql and that was it!
Categories: MySQL
Recent Comments