Help › Connect to databases

Connect to MySQL or MariaDB

What a MySQL or MariaDB connection needs, which sign-in methods work, and what is particular to these servers in Querlyn.

Querlyn 0.1.0 is not released yet. This help describes it ahead of release.

MySQL and MariaDB are two entries under Database engine. Choose the one your server really is: Querlyn reads your SQL in that dialect, and the backup tools and the lock warnings follow the choice.

What you need

  • The server's host name and port (usually 3306).
  • A user and its password, or a cloud sign-in.
  • Optionally the database to start in.

Fill in the dialog

  1. Choose File › New Connection… and, under Database engine, MySQL or MariaDB.
  2. Enter the Host. Port already says 3306.
  3. Enter the User. Database may stay empty: the sidebar then lists every database you may see.
  4. Enter the Password, or choose another place under Where the password is kept.
  5. Check TLS; see Encrypt a connection with TLS.
  6. Choose Test Connection, then Save & Connect.

Sign in

Querlyn signs in with the methods caching_sha2_password, mysql_native_password and sha256_password.

SituationWhat happens
The server asks for the password in clear text (mysql_clear_password, used with LDAP and PAM)Querlyn sends it only over an encrypted connection. Without TLS the sign-in is refused.
A MariaDB user signs in with ed25519 or parsecNot supported. Give the user one of the methods above.
The account still has a password from before MySQL 4.1Refused. Update the account's password.

Under Authentication you can also choose AWS IAM for Amazon RDS and Aurora (MySQL and MariaDB), and Microsoft Entra ID for Azure Database for MySQL. See Sign in with AWS or Entra ID.

What is particular to MySQL and MariaDB

  • Databases are listed right under the connection. MySQL has no level above its databases, so the sidebar lists them where other servers list schemas, directly under the connection, the connection's own marked current.
  • Schema changes commit at once. A CREATE, ALTER or DROP commits the open transaction and cannot be rolled back. Querlyn adds a warning to Messages when a statement committed your transaction this way, and the table designer says "can't be rolled back" on each statement it writes.
  • Warnings are shown. After the last statement of a run, Querlyn reads the server's warnings and lists them under Messages.
  • UPDATE counts matched rows. The number reported is the rows the WHERE clause matched, including rows whose values did not change.
  • DELIMITER works. A script may change the statement separator with DELIMITER, as in the mysql program, to hold a procedure or trigger.
  • Parameters are written ? or :name. A session variable such as @total is not a parameter and is never asked for.
  • Backups need the server's own tools. mysqldump and mysql for MySQL, mariadb-dump and mariadb for MariaDB, installed on your computer. Querlyn does not include them. See Back up and restore a database.
  • Explain Analyze needs MySQL 8.3 or later; on MariaDB it works as it is.
  • Lock warnings assume InnoDB tables, and cover MySQL 8.0 and later and MariaDB 11.2 and later.

What Querlyn does not do

  • LOAD DATA LOCAL INFILE is turned off. To load a file from your computer, use Import data from a file.
  • Events are not listed in the sidebar.
  • Client certificates for signing in are not supported.

Help for Querlyn 0.1.0. All help topics