# Database Configuration

### **Create Database**

* Login to your cpanel hosting and open **MySQL Databases**
* Create database and give database name like you want, as example : ‘**solodroid\_myapp\_db**’
* Create user for your database
* Add user to your database and check **ALL PRIVILEGES**

<div align="left"><img src="https://3806645249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LfFYEy1XrsDMlbIHLW7%2Fuploads%2F4WH4vJpClU8vtcoVJ3FD%2Fimage.png?alt=media&#x26;token=9a2b2412-9135-4157-8387-52a3cf9ca5e8" alt=""></div>

<div align="left"><img src="https://3806645249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LfFYEy1XrsDMlbIHLW7%2Fuploads%2FWfx05eRvu1txwVxKrAOF%2Fimage.png?alt=media&#x26;token=1d0de9a6-bd10-4302-89e7-b3d356d9c5ba" alt=""></div>

<div align="left"><img src="https://3806645249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LfFYEy1XrsDMlbIHLW7%2Fuploads%2FSKCd7iTtcRFJkt0X9zmC%2Fimage.png?alt=media&#x26;token=ffb1e031-851f-4074-ab88-eb1933df0b93" alt=""></div>

### Import Database

* Open **phpMyAdmin** and select your database
* Import database file “ **android\_ebook\_app\_db.sql**” from download package inside ‘**admin\_panel**‘ folder

### Upload PHP Scripts

* Open **File Manager** via cpanel or ftp server
* Upload **“android\_ebook\_app.zip**” inside “**admin\_panel**” folder to your folder destination on your hosting, then extract it

### Database Connection

* to change configuration please see **includes/config.php** file
* you must edit this data with your own data.

{% code title="config.php" %}

```php
//database configuration
$host       = "localhost";
$user       = "root";
$pass       = "";
$database   = "android_ebook_app_db";

$connect = new mysqli($host, $user, $pass, $database);

if (!$connect) {
   die ("connection failed: " . mysqli_connect_error());
} else {
   $connect->set_charset('utf8mb4');
}
```

{% endcode %}

### Default Admin Panel Login detail

Username : admin\
Password : admin


---

# Agent Instructions: 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://android-ebook-app.gitbook.io/docs/admin-panel/database-configuration.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.
