Install MariaDB Databases on a FreeBSD 11 Unix Server

Install MariaDB Databases on a FreeBSD 11 Unix Server

To install MariaDB, a popular open-source database management system, on a FreeBSD 11 server, follow these steps:

  1. Add the MariaDB package repository to your system's package sources by running the following command:
refer‮ot ‬:lautturi.com
pkg install -r mariadb
  1. Install MariaDB by running the following command:
pkg install mariadb102-server

This will install the MariaDB server and client programs, as well as any dependencies required.

  1. Enable the MariaDB service to start automatically at boot time by running the following command:
sysrc mysql_enable=YES
  1. Start the MariaDB service by running the following command:
service mysql-server start
  1. Secure the MariaDB installation by running the following command:
mysql_secure_installation

This will prompt you to set a root password for MariaDB, as well as to remove anonymous user accounts and disallow remote root login. Follow the prompts to complete the security configuration.

  1. Once the installation is complete, you can log in to the MariaDB command line by running the following command:
mysql -u root -p

Enter the root password you set during the security configuration to log in. From the MariaDB command line, you can create and manage databases, users, and other objects.

That's it! You now have MariaDB installed and configured on your FreeBSD 11 server. You can use it to store and manage data for your applications.

Created Time:2017-10-16 14:38:51  Author:lautturi