mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Use PDO for MySQL queries (#8935)
Gut dbFacile mres() now does nothing... could have some vulnerable queries, but most are ok TODO - [x] IRC client broke - [x] Install broke DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
This commit is contained in:
committed by
Neil Lathwood
parent
86c097574b
commit
a2e33efba8
@@ -39,13 +39,10 @@ exit
|
||||
|
||||
vi /etc/my.cnf
|
||||
|
||||
> NOTE: Whilst we are working on ensuring LibreNMS is compatible with MySQL strict mode, for now, please disable this after mysql is installed.
|
||||
|
||||
Within the `[mysqld]` section please add:
|
||||
|
||||
```bash
|
||||
innodb_file_per_table=1
|
||||
sql-mode=""
|
||||
lower_case_table_names=0
|
||||
```
|
||||
systemctl enable mariadb
|
||||
|
||||
@@ -39,13 +39,10 @@ exit
|
||||
|
||||
vi /etc/my.cnf
|
||||
|
||||
> NOTE: Whilst we are working on ensuring LibreNMS is compatible with MySQL strict mode, for now, please disable this after mysql is installed.
|
||||
|
||||
Within the `[mysqld]` section please add:
|
||||
|
||||
```bash
|
||||
innodb_file_per_table=1
|
||||
sql-mode=""
|
||||
lower_case_table_names=0
|
||||
```
|
||||
systemctl enable mariadb
|
||||
|
||||
@@ -36,13 +36,10 @@ exit
|
||||
|
||||
vi /etc/mysql/mariadb.conf.d/50-server.cnf
|
||||
|
||||
> NOTE: Whilst we are working on ensuring LibreNMS is compatible with MySQL strict mode, for now, please disable this after mysql is installed.
|
||||
|
||||
Within the `[mysqld]` section please add:
|
||||
|
||||
```bash
|
||||
innodb_file_per_table=1
|
||||
sql-mode=""
|
||||
lower_case_table_names=0
|
||||
```
|
||||
systemctl restart mysql
|
||||
|
||||
@@ -35,13 +35,10 @@ exit
|
||||
|
||||
vim /etc/mysql/mariadb.conf.d/50-server.cnf
|
||||
|
||||
> NOTE: Whilst we are working on ensuring LibreNMS is compatible with MySQL strict mode, for now, please disable this after mysql is installed.
|
||||
|
||||
Within the `[mysqld]` section please add:
|
||||
|
||||
```bash
|
||||
innodb_file_per_table=1
|
||||
sql-mode=""
|
||||
lower_case_table_names=0
|
||||
```
|
||||
systemctl restart mysql
|
||||
|
||||
Reference in New Issue
Block a user