mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 08:01:38 +02:00
Merge pull request #1585 from laf/docs-mariadb
Added info on using MariaDB or MySQL
This commit is contained in:
@@ -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).
|
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
|
You are free to chose between using MySQL or MariaDB:
|
||||||
mysql -uroot -p
|
|
||||||
|
**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.
|
Input the MySQL root password to enter the MySQL command-line interface.
|
||||||
|
|
||||||
|
|||||||
@@ -4,13 +4,31 @@ NOTE: These instructions assume you are the root user. If you are not, prepend
|
|||||||
|
|
||||||
### On the DB Server ###
|
### On the DB Server ###
|
||||||
|
|
||||||
yum install net-snmp mysql-server
|
You are free to chose between using MySQL or MariaDB:
|
||||||
service snmpd start
|
|
||||||
service mysqld start
|
**MySQL**
|
||||||
chkconfig mysqld on
|
```bash
|
||||||
chkconfig snmpd on
|
yum install net-snmp mysql-server mysql-client
|
||||||
mysql_secure_installation
|
chkconfig mysqld on
|
||||||
mysql -uroot -p
|
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.
|
Enter the MySQL root password to enter the MySQL command-line interface.
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,19 @@
|
|||||||
|
|
||||||
### On the DB Server ###
|
### On the DB Server ###
|
||||||
|
|
||||||
apt-get install mysql-server mysql-client snmpd
|
You are free to chose between using MySQL or MariaDB:
|
||||||
mysql -uroot -p
|
|
||||||
|
**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.
|
Enter the MySQL root password to enter the MySQL command-line interface.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user