(gdb) backtrace
#0  0x65e81bee in mysql_error_fn (conn=0x9187970, user_data=0x91877f8)
    at ../../../../repos/src/backend/dbi/gnc-backend-dbi.c:393
#1  0x6c9c8daf in _dbd_internal_error_handler ()
   from c:\program files\gnucash\bin\libdbi-0.dll
#2  0x040a265a in dbd_connect ()
   from c:\program files\gnucash\lib\dbd\libdbdmysql.dll
#3  0x6c9c2b7b in dbi_conn_connect ()
   from c:\program files\gnucash\bin\libdbi-0.dll
#4  0x65e82900 in gnc_dbi_mysql_session_begin (qbe=0x91877f8,
    session=0x90d2b98,
    book_id=0x9187690 "mysql://root:rootpw@localhost/gnucash",
    ignore_lock=0, create=1, force=0)
    at ../../../../repos/src/backend/dbi/gnc-backend-dbi.c:725
#5  0x004a19b4 in qof_session_begin (session=0x90d2b98,
    book_id=0x9161c48 "mysql://root:rootpw@localhost/gnucash",
    ignore_lock=0, create=1, force=0)
    at ../../../../repos/src/libqof/qof/qofsession.c:1164
#6  0x00f2fdc0 in gnc_file_do_save_as (
    filename=0x4f12038 "mysql://root:rootpw@localhost/gnucash")
    at ../../../repos/src/gnome-utils/gnc-file.c:1239
#7  0x00efb847 in gnc_ui_file_access_response_cb (dialog=0x4e08298,
    response=-5, unused=0x4e08298)
    at ../../../repos/src/gnome-utils/dialog-file-access.c:140
---Type <return> to continue, or q <return> to quit---
#8  0x63a44124 in g_closure_invoke ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#9  0x63a57879 in signal_emit_unlocked_R ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#10 0x63a58a93 in g_signal_emit_valist ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#11 0x63a58fc6 in g_signal_emit ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#12 0x00ba53d0 in gtk_dialog_response ()
   from c:\program files\gnucash\bin\libgtk-win32-2.0-0.dll
#13 0x63a44124 in g_closure_invoke ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#14 0x63a57879 in signal_emit_unlocked_R ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#15 0x63a58a93 in g_signal_emit_valist ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#16 0x63a58fc6 in g_signal_emit ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#17 0x00b73819 in gtk_button_clicked ()
   from c:\program files\gnucash\bin\libgtk-win32-2.0-0.dll
#18 0x00b74f70 in gtk_real_button_released ()
   from c:\program files\gnucash\bin\libgtk-win32-2.0-0.dll
#19 0x63a44124 in g_closure_invoke ()
---Type <return> to continue, or q <return> to quit---
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#20 0x63a57243 in signal_emit_unlocked_R ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#21 0x63a58a93 in g_signal_emit_valist ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#22 0x63a58fc6 in g_signal_emit ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#23 0x00b73889 in gtk_button_released ()
   from c:\program files\gnucash\bin\libgtk-win32-2.0-0.dll
#24 0x00b73a08 in gtk_button_button_release ()
   from c:\program files\gnucash\bin\libgtk-win32-2.0-0.dll
#25 0x00c2a262 in _gtk_marshal_BOOLEAN__BOXED ()
   from c:\program files\gnucash\bin\libgtk-win32-2.0-0.dll
#26 0x63a44124 in g_closure_invoke ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#27 0x63a5758c in signal_emit_unlocked_R ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#28 0x63a5892b in g_signal_emit_valist ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#29 0x63a58fc6 in g_signal_emit ()
   from c:\program files\gnucash\bin\libgobject-2.0-0.dll
#30 0x00d34553 in gtk_widget_event_internal ()
   from c:\program files\gnucash\bin\libgtk-win32-2.0-0.dll
---Type <return> to continue, or q <return> to quit---
#31 0x00c22c9a in gtk_propagate_event ()
   from c:\program files\gnucash\bin\libgtk-win32-2.0-0.dll
#32 0x00c23c49 in gtk_main_do_event ()
   from c:\program files\gnucash\bin\libgtk-win32-2.0-0.dll
#33 0x6c36ca7f in gdk_event_dispatch ()
   from c:\program files\gnucash\bin\libgdk-win32-2.0-0.dll
#34 0x685eb50b in g_main_context_dispatch ()
   from c:\program files\gnucash\bin\libglib-2.0-0.dll
#35 0x685ee5f5 in g_main_context_iterate ()
   from c:\program files\gnucash\bin\libglib-2.0-0.dll
#36 0x685ee9e4 in g_main_loop_run ()
   from c:\program files\gnucash\bin\libglib-2.0-0.dll
#37 0x00c24260 in gtk_main ()
   from c:\program files\gnucash\bin\libgtk-win32-2.0-0.dll
#38 0x00f33f12 in gnc_ui_start_event_loop ()
    at ../../../repos/src/gnome-utils/gnc-gnome-utils.c:601
#39 0x00403ead in inner_main (closure=0x0, argc=1, argv=0x33404b8)
    at ../../../repos/src/bin/gnucash-bin.c:725
#40 0x0075563d in scm_boot_guile (argc=1, argv=0x33404b8,
    main_func=0x403d3d <inner_main>, closure=0x0) at init.c:635
#41 0x004042bb in main (argc=1, argv=0x33404b8)
    at ../../../repos/src/bin/gnucash-bin.c:869
(gdb) quit
ContinueDebugEvent (cpid=4232, ctid=5200, DBG_CONTINUE);
ContinueDebugEvent (cpid=4232, ctid=3376, DBG_CONTINUE);
ContinueDebugEvent (cpid=4232, ctid=284, DBG_CONTINUE);
ContinueDebugEvent (cpid=4232, ctid=1232, DBG_CONTINUE);
ContinueDebugEvent (cpid=4232, ctid=6124, DBG_CONTINUE);
ContinueDebugEvent (cpid=4232, ctid=6056, DBG_CONTINUE);
ContinueDebugEvent (cpid=4232, ctid=3332, DBG_CONTINUE);
ContinueDebugEvent (cpid=4232, ctid=6068, DBG_CONTINUE);
ContinueDebugEvent (cpid=4232, ctid=1552, DBG_CONTINUE);
ContinueDebugEvent (cpid=4232, ctid=3036, DBG_CONTINUE);
ContinueDebugEvent (cpid=4232, ctid=5200, DBG_CONTINUE);
gdb: child_close, inferior_ptid=5200