---
title: "MySQL Protocol Support"
---

# MySQL Protocol Support

HeliosDB serves the MySQL wire protocol (v10), so existing MySQL applications can migrate and connect with their usual drivers.

## Overview

| Property | Value |
|----------|-------|
| **Protocol** | MySQL Wire Protocol v10 |
| **Port** | 3306 |
| **State** | Supported |
| **Compatibility** | 80%+ |
| **Test Coverage** | 80%+ |

## Quick Start

### Python (mysql-connector-python)

```python
import mysql.connector

conn = mysql.connector.connect(
    host="localhost",
    port=3306,
    user="admin",
    password="password",
    database="heliosdb"
)
cursor = conn.cursor()
cursor.execute("SELECT * FROM users")
for row in cursor.fetchall():
    print(row)
conn.close()
```

### Node.js (mysql2)

```javascript
const mysql = require('mysql2/promise');

const connection = await mysql.createConnection({
  host: 'localhost',
  port: 3306,
  user: 'admin',
  password: 'password',
  database: 'heliosdb'
});

const [rows] = await connection.execute('SELECT * FROM users');
console.log(rows);
await connection.end();
```

### Java (JDBC)

```java
import java.sql.*;

String url = "jdbc:mysql://localhost:3306/heliosdb";
Connection conn = DriverManager.getConnection(url, "admin", "password");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM users");
while (rs.next()) {
    System.out.println(rs.getString("name"));
}
conn.close();
```

## Key Features

- Full MySQL wire protocol v10 support
- Authentication handshakes: mysql_native_password, caching_sha2_password (role names are checked; password verification is not implemented yet, so keep the listener on a trusted network)
- Prepared statements with parameter binding
- Multi-statement queries
- Transaction support (ACID)
- All standard data types

## Documentation

- **[CONFIGURATION.md](https://www.heliosdb.com/docs/full/reference/protocols/mysql/configuration/)** - Server configuration options
- **[COMPATIBILITY.md](https://www.heliosdb.com/docs/full/reference/protocols/mysql/compatibility/)** - Feature compatibility matrix
- **[EXAMPLES.md](https://www.heliosdb.com/docs/full/reference/protocols/mysql/examples/)** - Code examples and patterns

## Related Resources

- [Protocol Quick Start](/docs/full/quick-starts/protocols/) - Getting started guides
- [Migration Guide](https://www.heliosdb.com/docs/full/reference/protocols/migrations/migration_from_mysql_to_heliosdb/) - MySQL migration

---
