https://github.com/computate-org/computate_squirrelsql
https://github.com/computate-org/computate_squirrelsql
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/computate-org/computate_squirrelsql
- Owner: computate-org
- Created: 2021-12-16T13:04:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-20T19:40:19.000Z (over 4 years ago)
- Last Synced: 2025-02-15T04:32:50.832Z (over 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install the SquirreL SQL ansible role
```bash
# Create a directory for the ansible role.
install -d ~/.ansible/roles/computate.computate_squirrelsql
# Clone the SquirreL SQL ansible role.
git clone git@github.com:computate-org/computate_squirrelsql.git ~/.ansible/roles/computate.computate_squirrelsql
cd ~/.ansible/roles/computate.computate_squirrelsql
```
# Run the SquirreL SQL ansible playbook to install SquirreL SQL locally.
```bash
ansible-playbook install.yml
```
# Setup Drivers and Connections in SquirreL SQL
## Setup a MySQL driver
- Download the "Platform Independent" driver here: https://dev.mysql.com/downloads/connector/j/
- Extract the mysql-connector-java-8.0.27.jar to this directory: ~/.local/opt/squirrel-sql/lib
- In SQuirreL SQL, click the Drivers tab, then double click on "MySQL Driver"
- Click the "Extra Class Path" tab and add this file: ~/.local/opt/squirrel-sql/lib/mysql-connector-java-8.0.27.jar
## Setup a MySQL connection
- In the Aliases tab, click the [ + ] button.
- Provide a name for your connection and the JDBC URL to your MySQL database and the username and password (jdbc:mysql://127.0.0.1:3306/mydb?useSSL=false).
- Click [ Test ] button to test the connection, then click [ Connect ] to connect.