Error in my_thread_global_end() when running rake db:migrate

When I run rake db:migrate I get this error at the end.

Error in my_thread_global_end(): 1 threads didn't exit

I pinned it down to this code which is in 004_create_permissions.rb.

    # create admin user
    user =
    user.login = 'admin'
    user.password = 'password'

If I don't run I don't get the error. I am not sure
why, the user does get saved properly to the database.

Any help would be appreciated.


Hi Frank Kim!. I had similar problem ( my config: "mysql Ver 14.12
Distrib 5.0.46, for Win32"). I found an answer here After update to "mysql Ver 14.12
Distrib 5.0.51b, for Win32 (ia32)" a problem disappeared. Try to update
your msql, I hope it will help you.

Frank Kim wrote: