Connection setup
1
Gather your MySQL credentials
You’ll need the following:
- Host (e.g.,
localhost,db.example.com, or an RDS endpoint) - Port (default:
3306) - Username (e.g.,
rootor a dedicated application user) - Password
- Database (optional): the default database to connect to
2
Add the connection in Spojit
Go to Connections in Spojit, click Add Connection, select MySQL, and enter:
- Host: Your MySQL server hostname or IP
- Port: MySQL port number (default
3306) - Username: Database username
- Password: Database password
- Database (optional): Default database name
- Use SSL (optional): Enable for cloud-hosted databases
Common MySQL settings
Tools
execute-query: Execute a raw SQL query
execute-query: Execute a raw SQL query
list-databases: List all databases
list-databases: List all databases
List all databases accessible with the current credentials.Example response:
list-tables: List tables in a database
list-tables: List tables in a database
describe-table: Get table schema
describe-table: Get table schema
insert-rows: Insert rows into a table
insert-rows: Insert rows into a table
update-rows: Update rows matching a condition
update-rows: Update rows matching a condition