MYSQL.SERVER(1)

πŸ’– MYSQL.SERVER(1) πŸ’–

okay bestie, welcome to the MariaDB Database System manual page for MYSQL.SERVER(1) β€” yes it's a manual page, yes it's from the MariaDB Database System, and yes we're gonna make it cute. sit down, grab a strawberry πŸ“, and let's talk about the little script that starts and stops your whole server. no big deal. only everything. πŸ‘‘


✨ NAME ✨

mysql.server β€” the MariaDB server startup script. she's little, she's mighty, she's the one who turns the lights on. 🫢


✨ SYNOPSIS ✨

mysql {start|stop}

like… you literally just tell her start or stop. that's it. that's the whole vibe check. πŸ’…


✨ DESCRIPTION ✨

so MariaDB distributions on Unix ship with a script named mysql.server. it's for systems like Linux and Solaris that use System V-style run directories to start and stop system services. it's also what the Mac OS X Startup Item for MariaDB uses. iconic behavior honestly. 🌈

you can find mysql.server in the support-files directory under your MariaDB installation directory, or inside a MariaDB source distribution. she lives there. that's her home. πŸŽ€

now, if you're using the Linux server RPM package β€” that's MySQL-server-VERSION.rpm β€” the mysql.server script gets installed into the /etc/init.d directory with the name mysql. you do not need to install it manually, bestie, it's already handled. slay. ✨

some vendors be providing RPM packages that install a startup script under a different name, such as mariadbd. so don't be confused if you go looking for her and she's wearing a different name tag. 😭

and if you install MariaDB from a source distribution, or from a binary distribution format that doesn't install mysql.server automatically β€” then yeah, you can install it manually. you got this. πŸ’ͺ

here's a thing you should know: mysql.server reads options from the [mysql.server] and [mariadbd] sections of option files. and for backward compatibility, she also reads [mysql_server] sections β€” although like, you should rename such sections to [mysql.server]&. it's giving "old name, new name, please update." πŸ™ˆ

mysql.server supports the following options. πŸ¦‹

  • --basedir=path β€” the path to the MariaDB installation directory.
  • --datadir=path β€” the path to the MariaDB data directory.
  • --pid-file=file_name β€” the path name of the file in which the server should write its process ID. if you don't provide one, the default host_name.pid is used.
  • --service-startup-timeout=file_name β€” how long, in seconds, to wait for confirmation of server startup. if the server doesn't start within this time, mysql.server exits with an error. the default value is 900. a value of 0 means not to wait at all for startup. negative values mean to wait forever β€” no timeout, she's committed, she's in it for the long haul. πŸ’œ
  • --use-mariadbd_safe β€” use mariadbd_safe to start the server. this is the default. main character energy. πŸ‘‘
  • --use-manager β€” use Instance Manager to start the server.
  • --user=user_name β€” the login user name to use for running mariadbd.

Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc., 2010-2025 MariaDB Foundation

This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA or see http://www.gnu.org/licenses/.

fr fr, read the license, it's important, that's not a vibe thing that's a legal thing πŸ’€

✨ SEE ALSO ✨

For more information, please refer to the MariaDB Documentation, available online at https://mariadb.com/docs/


✨ AUTHOR ✨

MariaDB Foundation (http://www.mariadb.org/).


and that's the whole page, bestie!! 🌸 this was MariaDB 11.8, dated 5 March 2025, and you read the entire MYSQL.SERVER(1) manual page like a champ. go start your server. or stop it. either way you ate. πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from
  • alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
  • arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
  • arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
  • centos-stream 10: mariadb11.8-server 3:11.8.8-1.el10 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • centos-stream 9: mariadb-server 3:11.8.8-1.module_el9+1370+ec5ecc2e Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 43: mariadb11.8-server 3:11.8.8-1.fc43 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 43: mariadb12.3-server 3:12.3.2-2.fc43 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 44: mariadb-server 3:11.8.6-2.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 44: mariadb-server 3:11.8.8-3.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • fedora 44: mariadb12.3-server 3:12.3.2-2.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
  • nixpkgs unstable: mariadb-server 11.8.8
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms