# Set Connection Settings

Method used to establish the connection to the Mysql database. This method must be called first to establish the connection to the ftp server. The other methods cannot be used before this method is called.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `Host`    | `String` | ✅Yes     | Server address |
| `Database` | `String` | ✅Yes     | Database name |
| `Username` | `String` | ✅Yes     | User name   |
| `Password` | `SecureString` | ✅Yes     | Password    |
| `Port`    | `Int32` | ❌No      | Port number |


---

### ➡️**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `PAWMySqlConnectionSettings` | [`PAWMySqlConnectionSettings`](/doc/pawmysqlconnectionsettings-0XkbFaKW6q) | Connection information |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Specifies whether an exception is thrown when the operation fails. The default value is "**No**".<br> |