Code and config

my.cnf viewer

Drop my.cnf, my.ini or a file from mysql.conf.d to see each setting explained, options set twice, and the [client] password kept hidden. Your browser opens it on your device: nothing is uploaded.

Opened on this device, never uploadedDrop or paste another file at any time

What you see

my.cnf in the viewerWhat it does
Options explainedWith MySQL 8.4’s defaults and a link to its docs; - and _ in names read alike
Set twiceNamed, with the value MySQL uses: the last (the first for mysqld’s user)
PasswordsHidden until Show secrets; Copy leaves them out
Extensions.conf, .cnf, .ovpn
UploadNone: opened on your device

What is a my.cnf file?

In short

my.cnf (my.ini on Windows) is the option file of MySQL and MariaDB: the server’s settings under [mysqld], and the command-line tools’ under [client], [mysql] and [mysqldump].

How to open a my.cnf file

  1. Add your my.cnf. Drop the file in the box, choose it or paste it.
  2. Look at it. The server at a glance (port, address, connections, data folder), what each option means and MySQL’s default under it when you switch Explanations on, options set twice with the one MySQL uses (the last), and passwords hidden until you show them.

Questions

Where is my.cnf?

On Linux /etc/mysql/my.cnf or /etc/my.cnf, with more files in conf.d and mysql.conf.d; on Windows my.ini in the MySQL folder. mysqld --help --verbose lists the files it reads, in order.

Which value counts when an option is written twice?

The last one MySQL reads, except mysqld’s user, where the first counts. The list above the settings names both lines.

Is it safe to open a my.cnf with a password in it?

It is read in your browser and never uploaded, and the password stays hidden until you show it.

Is my file uploaded?

No. The viewer runs in your browser and opens the file on your device. Nothing is sent anywhere.

Can opening a file here damage it?

No. The viewer only reads the file: a browser gives a page no way to change it. If something goes wrong, the view stops and the file is as it was.

Related