This guide will walk you through the installation process of the "mikrotik_traffic_counter_en" project on a Linux system.
Before you begin, make sure you have the following prerequisites in place:
yum
package manager).git
installed on your system.sudo yum install git -y
sudo mkdir /etc/mikrotik_traffic_counter_en
sudo git clone https://github.com/h-haghpanah/mikrotik_traffic_counter_en /etc/mikrotik_traffic_counter_en
cd /etc/mikrotik_traffic_counter_en/installation
sudo chmod +x /etc/mikrotik_traffic_counter_en/installation/*
sudo ./1-install_system_requirement.sh
sudo ./2-install_mysql.sh
After running the MySQL installation script, you'll receive a temporary password. Use grep
to find it:
grep 'temporary password' /var/log/mysqld.log
sudo mysql_secure_installation
Log in to MySQL as the root user:
mysql -u root -p
Then, create the "mikrotik" database:
CREATE DATABASE mikrotik;
exit
Import the SQL schema into the "mikrotik" database:
mysql -u root -p mikrotik < /etc/mikrotik_traffic_counter_en/mikrotik.sql
sudo ./3-install_python_requirement.sh