Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

Hello everyone,

Recently, MariaDB released an update, which brought about some changes in the installation and configuration process. In this guide, I will break down the steps required to install and configure MariaDB 10.11.4.

Installation Steps

Setup

  1. Start by searching for the MariaDB package:

     
  • This is the hidden content, please

     

  • Next, proceed to install the MariaDB server:

     
  • pkg install -y mariadb1011-server-10.11.4
        
  • To enable the MariaDB service on startup, add the following line to your configuration:

     
  • This is the hidden content, please

     

  • Now, initiate the MariaDB server:

     
  1. This is the hidden content, please

     

Change Password and Allow Remote Connections

  1. Access the MariaDB shell as the root user:

     
  • mysql -u root
        
  • Select the mysql database:

     
  • This is the hidden content, please

     

  • Set a new password for the root user:

     
  • This is the hidden content, please

     

  • Refresh the privileges to apply changes:

     
  • FLUSH PRIVILEGES;
        
  • Exit the MariaDB shell:

     
  • quit
        
  • Restart the MariaDB server:

     
  • service mysql-server restart
        
  • Log back in using the new password:

     
  • This is the hidden content, please

     

  • Grant all privileges to the root user for remote connections:

     
  • This is the hidden content, please

     

  • Exit the shell again:

     
  • quit
        
  • Restart the MariaDB server once more:

     
  • service mysql-server restart
        
  • Log in to the MariaDB shell again:

     
  • mysql -u root
        
  • Select the mysql database again:

     
  • This is the hidden content, please

     

  • Set the password for the root user for remote access:

     
  • This is the hidden content, please

     

  • Finally, refresh the privileges one last time:

     
  • FLUSH PRIVILEGES;
        
  • Quit the shell:

     
  • quit
        
  • Restart the MariaDB server for the final time to apply all configurations:

     
  1. service mysql-server restart
        

Configuration Comparison

You can find the configuration settings at the following path:

 
This is the hidden content, please

Within this file, you need to ensure that the following settings are correct:

 
[mysqld]
user = mysql
port = 3306 # inherited from /usr/local/etc/mysql/my.cnf
socket = /tmp/mysql.sock # inherited from /usr/local/etc/mysql/my.cnf
# bind-address = 0.0.0.0
    

Congratulations! You’ve successfully installed and configured MariaDB 10.11.4!

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...