This says you don’t have a database selected for both errors. This is normally defined when the connection details (like username, password) are defined as well.

For MySQL Async, you need to put your database name with the mysql_connection_string in a server cfg file. For example:
set mysql_connection_string "user=user_name;database=db_name;password=my_password"