forked from lukeczapla/javacoderun
-
Notifications
You must be signed in to change notification settings - Fork 1
MySQL Quickstart
Matthew edited this page May 13, 2021
·
6 revisions
The code base expects a MySQL connection to run.
- Download and install MySQL Community Server for your OS.
- This will allow you to run a local MySQL server.
- Download MySQL Workbench for your OS.
- This will allow you to connect to either a local or remote MySQL server.
- This will also allow you to create a schema for your local tamarisk database.
In MySQL Workbench, create a new connection with the following:
-
hostname
127.0.0.1(your local IP address) -
port
3306 -
username
root - password leave this blank, as MySQL defaults an (insecure) root user with no password
- Connect as the root user by double clicking the newly created connection.
- In the left drawer where it lists SCHEMAS, right click and select Create Schema... from the dropdown menu.
- Name the schema tamariskdb and click Apply to open the create schema wizard.
- Leave the defaults and click Apply and Finish to create the schema.
- If you do not see the newly created tamariskdb schema listed in the SCHEMAS drawer than click the refresh icon.
- Go back to the MySQL Workbench home by clicking the tab with the house icon.
- Right click your connection and click Edit Connection...
- Add the tamariskdb schema to the Default Schema option.
It is good practice, and more secure, to create a root password.
- Connect as the root user and execute the following lines of code
- Select the
Server > Users and Privilegesdropdown. - Select the
rootaccount and add a custom Password.
It is good practice, and more secure, to create a new user for your tamariskdb schema connection, setting aside the root user for more general admin purposes.
- Connect as the root user and execute the following lines of code
- Select the
Server > Users and Privilegesdropdown. - Click the Add Account button and create a custom Login Name and Password.