Added info on using MariaDB or MySQL

This commit is contained in:
laf
2015-08-01 19:15:40 +00:00
parent 8a54cddaf2
commit 25f9843cac
3 changed files with 51 additions and 11 deletions

View File

@@ -7,8 +7,19 @@
This host is where the MySQL database runs. It could be the same machine as your network management server (this is the most common initial deployment scenario).
apt-get install mysql-server mysql-client
mysql -uroot -p
You are free to chose between using MySQL or MariaDB:
**MySQL**
```bash
apt-get install mysql-server mysql-client
mysql -uroot -p
```
**MariaDB**
```bash
apt-get install mariadb-server mariadb-client
mysql -uroot -p
```
Input the MySQL root password to enter the MySQL command-line interface.

View File

@@ -4,13 +4,31 @@ NOTE: These instructions assume you are the root user. If you are not, prepend
### On the DB Server ###
yum install net-snmp mysql-server
service snmpd start
service mysqld start
chkconfig mysqld on
chkconfig snmpd on
mysql_secure_installation
mysql -uroot -p
You are free to chose between using MySQL or MariaDB:
**MySQL**
```bash
yum install net-snmp mysql-server mysql-client
chkconfig mysqld on
service mysqld start
```
**MariaDB**
```bash
yum install net-snmp mariadb-server mariadb-client
chkconfig mariadb on
service mariadb start
```
Now continue with the installation:
```bash
yum install net-snmp mysql-server
service snmpd start
chkconfig snmpd on
mysql_secure_installation
mysql -uroot -p
```
Enter the MySQL root password to enter the MySQL command-line interface.

View File

@@ -4,8 +4,19 @@
### On the DB Server ###
apt-get install mysql-server mysql-client snmpd
mysql -uroot -p
You are free to chose between using MySQL or MariaDB:
**MySQL**
```bash
apt-get install mysql-server mysql-client
mysql -uroot -p
```
**MariaDB**
```bash
apt-get install mariadb-server mariadb-client
mysql -uroot -p
```
Enter the MySQL root password to enter the MySQL command-line interface.