# Error 4226: Slave SQL thread aborted

| Error Code | SQLSTATE | Error                  | Description                                                                        |
| ---------- | -------- | ---------------------- | ---------------------------------------------------------------------------------- |
| 4226       |          | ER\_INIT\_SLAVE\_ERROR | Slave SQL thread aborted. Can't execute init\_slave query due to error code %u: %s |

## Possible Causes and Solutions

Prior to the introduction of this error, there were multiple error codes reported for the issue 'Can't execute init\_slave query'. Those errors are the underlying reason the init\_slave query cannot be executed, but this made it difficult to detect the issue in an automated way.

This error code, ER\_INIT\_SLAVE\_ERROR, unifies all the errors related to the init\_slave query. The ER\_INIT\_SLAVE\_ERROR error is raised for any issue related to the init\_slave query, and the underlying error code and message are included in the Last\_SQL\_Error field. See those specific errors for more details.

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}


---

# 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://mariadb.com/docs/server/reference/error-codes/mariadb-error-codes-4200-to-4299/e4226.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.
