how to make mysql test program

Hello.
I did setup mysql at localhost.

Xojo example protram as MYSQLExample.xojo_binary_project is work well.

I change connection paramaters as :

But, I make another new programs. It generate an error.

Why?

mDB in Module1 is scoped as private so is only accessible from within that module. You should change that to global so your entire application can access the object.

Ok, Bug fixed. Thank you!