pip install duckdb-extensions duckdb-extension-mysqlYou are ready to install the extension for duckdb.
from duckdb_extensions import import_extension
import_extension("mysql")Verify that the extension is installed.
import duckdb
print(
duckdb.sql("""SELECT installed
FROM duckdb_extensions() where
extension_name='mysql' or
list_contains(aliases, 'mysql')""")
.fetchone()[0]
)duckdb-extension-mysql is distributed under the terms of the MIT license.