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.new
user.login = 'admin'
user.password = 'password'
user.save(false)

If I don’t run user.save(false) 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.

Thanks,

Frank K.

Hi Frank K.!. I had similar problem ( my config: “mysql Ver 14.12
Distrib 5.0.46, for Win32”). I found an answer here
http://lists.mysql.com/commits/25160 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 K. wrote:

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.new
user.login = 'admin'
user.password = 'password'
user.save(false)

If I don’t run user.save(false) 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.

Thanks,

Frank K.