MySQL

ERROR 1307 (HY000) at line 31: Failed to CREATE PROCEDURE

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!

Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s