Code Monkey home page Code Monkey logo

mariadb-dbeaver-setup-guide's Introduction

MariaDB and DBeaver Setup Guide

A guide to install MariaDB and connect it to DBeaver on Linux Manjaro.

Why?

After struggling myself on this topic I decided to create this guide which gathers various resources found on the web, and share it in the name of helping my future self - and possibly others - who might be facing the same issues.

Disclaimer

As already mentioned, I put this guide together by gathering various resources mentioned at the bottom of this document.
You're very encouraged to report any incorrectness you may find.
This guide comes with absolutely no warranty.

DBeaver vs MySQL Workbench

I decided to go with DBeaver as it proved to be stable on my machine. MySQL Workbench on the other hand would crash 9 times out of 10, so I decided to save myself some time and go with the former.

Installation

Open a new terminal and install MySQL via pacman

sudo pacman -S mysql

You are prompted with two options. Choose mariadb repository extra as mysql provider by pressing Enter or manually entering 1.

You can now start MariaDB

sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql

And execute mysql_secure_installation shell script

sudo mysql_secure_installation

See following screenshot as reference to determine which actions to perform - or see the original documentation here

mysql_secure_installation

In the original documentation comments section, some users warn about a missing step:

You already have your root account protected, so you can safely answer 'n'.

Switch to unix_socket authentication [Y/n] n
... skipping.

When you're done, get inside MariaDB service

sudo mariadb

Or alternatively

mysql -u root -p

You can run all the commands you want here

create database <dbtest_name>;

show databases;

It's now necessary to grant user permissions

GRANT ALL ON *.* TO 'admin'@'localhost' IDENTIFIED BY '<your_password>' WITH GRANT OPTION;

And apply the changes

FLUSH PRIVILEGES;

Download DBeaver via Add/Remove Software and open it.\

Click Database > New Database Connection > Select MariaDB and hit Next

mariadb-modal

Hit the Finish button and you're set!

You should now see your DB named localhost inside Database Navigator tab

db-navigator

Useful links

https://www.youtube.com/watch?v=fwGJukksL9w
https://www.youtube.com/watch?v=DtRXOoQwdxY&t=444s
https://mariadb.com/kb/en/mysql_secure_installation/
https://stackoverflow.com/questions/50453078/unable-to-connect-to-mariadb-using-dbeaver

mariadb-dbeaver-setup-guide's People

Contributors

herebeandre avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.