So... not through Java then? Your question is not about
JDBC, but about the MySQL console?
I can't imagine why you would want to use ODBC when the MySQL console works perfectly well without it. Seems like a complete waste of time, both in figuring out how to do it and in having the communications go through extra processing when you do do it. But anyway since it's a question about MySQL and not JDBC, let's put it in the right forum.