> For the complete documentation index, see [llms.txt](https://identix.rlib.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://identix.rlib.io/configuration/database.md).

# Database

This addon saves player data utilizing either <mark style="color:green;">SQLite</mark> or <mark style="color:green;">Mysql</mark> (mysqloo module).

By default, this addon uses SQLite. If you wish to utilize this method; no further configurations need to be done. However, if you wish to utilize MySQL; read below.

### <mark style="color:red;">◾ SQLite</mark>

This is the default storage method; which is the built-in Garry's Mod. If you wish to use this method; no further setup needs to be done.

All data will be saved to:

```
garrysmod\sv.db
```

In order to view these records; you must install [DB Browser for SQLite](https://sqlitebrowser.org/).

### <mark style="color:red;">◾ MySQL</mark>

To configure your addon to utilize MySQL; you must configure the file:

```
addons/identix/identix.rlib
```

Within the above file; first ensure you switch the database mode from <mark style="color:red;">sqlite</mark> to <mark style="color:blue;">mysqloo</mark>:

```json
"general"
{
     "mode"          "mysqloo"
}
```

Then insert your MySQL credentials in the same file and then save and close:

```json
"mysql"
{
     "host"          "localhost"
     "port"          "3306"
     "user"          "db_username"
     "pass"          "db_pass"
     "name"          "db_nameu"
}
```

Any time you change the values within this file; you must restart the server for the changes to take affect.

In order to view these records; you must utilize your web hosts' Database Manager / PHPMyAdmin. Contact your host if you're unsure of how to do this.

{% hint style="warning" %}
In order for MySQL connections to function properly; you MUST install the <mark style="color:red;">**MySQLOO**</mark> module which can be [downloaded here](https://github.com/FredyH/MySQLOO/releases/).

We do not provide support for setting this up. Please review the [MySQLOO Installation Instructions here](https://github.com/FredyH/MySQLOO#install-instructions).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://identix.rlib.io/configuration/database.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
