Skip to content

Install MySql

  • Download the latest MySQL Community Server
# Checking MySQL service
systemctl status "mysql"
systemctl start "mysql"
systemctl stop "mysql"

# set environment variables for a service
systemctl set-environment MYSQLD_OPTS="--skip-grant-tables --skip-networking"

Test connection

SHOW databases;

Source .sql command in MySQL CLI

source $(pwd)/script.sql