0% found this document useful (0 votes)
14 views6 pages

Maria DB

Uploaded by

Phantom dancer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views6 pages

Maria DB

Uploaded by

Phantom dancer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

MARIADB

Workshop

13 OCTOBER 2022
IES FRANCISCO ROMERO VARGAS
MARIADB | oscar alvarez lucas

CONTENTS 1
MariaDb installation. ................................................................................................................................................................. 1
mysql_secure_installation ....................................................................................................................................................... 1
Creating a remote user to access remotely ..................................................................................................................... 3
In /etc/mysql/mariadb.cnf ............................................................................................................................................... 3
In /etc/mysql/mariadb.conf.d/50-server.conf ........................................................................................................ 4
User process creation................................................................................................................................................................ 4

MARIADB INSTALLATION.
I’m going to update the package repository from cli.

Now upgrade it and type apt install mariadb-server

When installed execute mysql_secure_installation and do the following steps:

MYSQL_SECURE_INSTALLATION
We are going to set a root password it’s going to be “toor”
MARIADB | oscar alvarez lucas

The next step is saying no to the unix_socket authentication.

We are not going to change the root password so say no to the next step too.

Say yes to remove the anonymous user.

Say no to disable the root login remotely

Let’s remove the table called test because is not safe.

Say yes to the reload the privileges.


MARIADB | oscar alvarez lucas

CREATING A REMOTE USER TO ACCESS REMOTELY


First of all, we are going to change the Ip to a static Ip, because is easier to work.

You have to change some things in a couple of files.

IN /ETC/MYSQL/MARIADB.CNF

You have to uncomment this line.


MARIADB | oscar alvarez lucas

IN /ETC/MYSQL/MARIADB.CON F.D/50-SERVER.CONF

You have to comment this line

USER PROCESS CREATION.


Now we are going to create a database to create the user later.
MARIADB | oscar alvarez lucas

Now we create the user with the privileges.

When created let’s try to connect remotely.

And we are inside the database.

You might also like