🔒 Closed How to install Mariadb in Ubuntu 20.0x

Status
Not open for further replies.

raevillena

Fanatic
1646266562743.webp1646266598734.webp

I sharing some snippets how to install MariaDB 10.5 in ubuntu 20.0x

1) open up a terminal inside ubuntu. or if you are in CLI already skip this step.
2) paste the code snippet below to install the Database engine.
You do not have permission to view the full content of this post. Log in or register now.
3) Setup the root user using
Code:
mysql_secure_installation
in the terminal. this is also the same code you can use whenever you forget the root password.
4) Login to engine using root user
Code:
mysql -u root -p
then key in the password
5) Once inside, Create a non root user for your apps
Code:
CREATE DATABASE testdb;
CREATE USER 'test'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON testdb.* TO test@localhost;
FLUSH PRIVILEGES;
quit
6) Login and use the database create to test the database engine.
Code:
mysql -u test -p
USE testdb;
7) Once testdb is in use. you are set. Done
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 2
    Replies
  • 697
    Views
  • 2
    Participants
Last reply from:
raevillena

Trending Topics

Online now

Members online
1,284
Guests online
2,445
Total visitors
3,729

Forum statistics

Threads
2,300,930
Posts
29,139,588
Members
1,199,708
Latest member
jakemae
Back
Top