Warning: THE VOID WIKI IS DEPRECATED. It is no longer being maintained, contains outdated and incorrect information, and will eventually be shut down. Please refer to the Void Handbook, https://docs.voidlinux.org/, for the official documentation. If you can't find the information you're seeking, please raise an issue at https://github.com/void-linux/void-docs/issues

MariaDB -

From Void Linux Wiki
Jump to navigation Jump to search

MySQL is a widely spread, multi-threaded, multi-user SQL database. For more information about features, see the official homepage.


MariaDB is the default implementation of MySQL in Void Linux, provided with the mariadb package. Install mariadb

# xbps-install -S mariadb

afterwards start the service

# ln -s /etc/sv/mysqld /var/service

The following command will interactively guide you through a number of recommended security measures at the database level and give you the possibility to set a root password for MariaDB:

# mysql_secure_installation


Once you have started the MySQL server and added a root account, you may want to change the default configuration.

To log in as root on the MySQL server, use the following command:

$ mysql -u root -p