Installation on Windows
winget install -e --id MariaDB.Server runs the MariaDB MSI installer, which installs the server and command-line client and registers a Windows service. The interactive setup asks for a root password — write it down.
Windows service and service name
The default service name is MariaDB. The net start / net stop and sc query commands above use that name; adjust it if you changed it during setup (check with sc query).
Adding mariadb to the PATH
The executables are in C:\Program Files\MariaDB 11.4\bin (the version folder depends on the installed release). If mariadb is not recognized, add that folder to the Path environment variable, then open a new terminal.