Skip to content

Instantly share code, notes, and snippets.

@Dracovian Dracovian/steps.txt Secret
Last active Sep 9, 2019

Embed
What would you like to do?
MariaDB configurator and rough steps for RHEL 8
yum -y install <pkgname>
cmake
gperftools-devel
git clone https://github.com/MariaDB/server.git
cd server
mkdir mariadb-server && cd mariadb-server
cmake -DCMAKE_EXE_LINKER_FLAGS='-ltcmalloc' -DWITH_SAFEMALLOC=OFF ../
make
make install
sudo vim /etc/profile
[scroll to bottom]
export PATH="$PATH:/usr/local/mysql/bin:/usr/local/mysql/scripts"
chmod -R 771 /usr/local/mysql
mariadb-install-db --datadir=/usr/local/mysql/data --no-defaults
sudo vim /etc/systemd/system/mariadb.service
[Unit]
Description=MariaDB Server
After=network.target
[Service]
ExecStart=/usr/local/mysql/bin/mysqld --datadir=/usr/local/mysql/data --user=root
[Install]
WantedBy=multi-user.target
mysql
set password for 'root'@'localhost' = PASSWORD('root-password');
delete from mysql.user where User = '';
create user 'mybb'@'localhost' identified by 'mybb-password';
create database `mybb-forum`;
grant all privileges on `mybb-forum`.* to 'mybb'@'localhost';
flush privileges;
\q
mysql -u mybb -D mybb-forum -p
mybb-password
\q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.