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 defaulthost_name.pidis 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.serverexits with an error. the default value is900. a value of0means 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β usemariadbd_safeto 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 runningmariadbd.
β¨ COPYRIGHT β¨
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