Skip to content

Configuration

Hazeezet edited this page Nov 18, 2021 · 1 revision

To add Your database name and the rest edit mopconfig.php in the src folder

Database Information

host = name of your host mostly localhost

username = Your database username

password = Your database password

database = Your database name

  "host" => 'localhost',          //host

  "username" => 'root',       //username

  "password" => '',       //password

  "database" => 'mop',       //database name

Injection

Inside injection array put all your table names that you want to prevent people to have access to

.....
"injection" =>
[
    "table 1",
    "table 2"
]

Master key

These is use to allow restricted table name in your query so it must come with your query.

NOTE : only pass it to your query from the admin app.

Should never be in your general app.

....
"masterkey" => 'your master key',

SQL key

These is use to verify your query all the time.

must be included at every query from your app.

....
"sqlkey" => 'your key',
Clone this wiki locally