MariaDB scratch

parent 54547081
Pipeline #15199216 passed with stages
in 34 seconds
;;;;;
title: Mariadb at OpenBSD
tags: OpenBSD, mariadb, install
date: 2017-12-16
author: Lenilson Jose Dias
format: md
;;;;;
My next development has MySQL as relational database, then at OpenBSD I will use [MariaDB](https://mariadb.org/ "MariaDB Server is one of the most popular database servers in the world. It’s made by the original developers of MySQL and guaranteed to stay open source. Notable users include Wikipedia, WordPress.com and Google").
## Installation
```sh
# pkg_add mariadb-server
```
I fully recommend following instructions from `/usr/local/share/doc/pkg-readmes`
![img](/static/post-images/pkg-readmes-mariadb.png)
Additional steps that I did:
Install databases:
```sh
# mysql_install_db
```
Start MariaDB:
```sh
# /etc/rc.d/mysqld start
```
Finnaly make MariaDB secure:
```sh
mysql_secure_installation
```
## Configuration
To start MariaDB at booting time:
```sh
# rcctl enable mysqld
```
If you don't want to start at booting time:
```sh
# rcctl start mysqld
```
## MariaDB Documentation
At the MariaDB website you can find a lot of [documentation](https://mariadb.com/kb/en/ "MariaDB Knowledge Base")
## Creating a database for development
```SQL
CREATE DATABASE generic_development;
```
```SQL
CREATE USER x7cc@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON generic_development.* to 'x7cc'@'localhost' WITH GRANT OPTION;
```
Enjoy! 😄
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment