Skip to content

Connect to local MariaDB from Mac

Use 127.0.0.1 for a MariaDB server on your Mac, or the server’s network address for another computer.

Have the server running and a database account ready. TableAI connects over TCP, so you need a listening host and port even if a Terminal client connects through a socket. For a container, follow the Docker guide instead.

Check the server configuration for its port and bind-address. The connection form defaults to port 3306; use the configured port if it differs. Get the database name, user, and password from whoever manages the server.

Follow connection basics for password options and the full form.

  1. Choose File › New Connection….
  2. Select MariaDB in Driver.
  3. Fill in Name, Host, Port, Database, User, and Password with your server details.
  4. Click Test.
  5. Click Save & Connect after the test succeeds.
MariaDB connection form for a server on this Mac

For a network server, configure SSL/TLS to match its certificate requirements. Use an SSH tunnel when access goes through an SSH host.

Connection refused
Access denied for user
No route to host
  • Connection refused: check that MariaDB is running and listening on the configured TCP port.
  • Access denied for user: check the database password and whether the account permits connections from your Mac.
  • Timeout or No route to host: check the network address, firewall, and local-network permission.

On macOS 15 and later, allow TableAI to access local-network hosts in System Settings › Privacy & Security › Local Network. Connections to 127.0.0.1 or localhost do not need this permission.

See connection failures for further checks.