-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MySQL Support! * MySQL Compatibility * Test against mysql * docs * Update CI db-setup script * Ensure mysql native bindings are installed when testing mysql in CI * Lower case table names in CI * Use default login path for MySQL * Override client login path * Use root to assign user privileges * restart mysql service in CI after config change * Attempt to config MySQL in CI before npm install * MySQL TitleCase table names * TitleCase for all table names * Dashboard queries refer to tables in TitleCase * Normalize sql queries for mysql * RDBMS agnostic null checking
- Loading branch information
1 parent
b207891
commit 76ef624
Showing
22 changed files
with
639,734 additions
and
639,310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
node_modules | ||
dist | ||
!master.sqlite | ||
scratch.sql | ||
scratch.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Setting up MySQL | ||
|
||
## OS X | ||
|
||
### Option 1 - Homebrew | ||
|
||
1. First, make sure you have homebrew installed | ||
2. Run `brew doctor` and address anything homebrew wants you to fix | ||
3. Run `brew install mysql` | ||
4. Run `brew services restart mysql` | ||
5. Run `mysql.server start` | ||
6. Run `mysql_secure_installation` | ||
|
||
## Windows | ||
|
||
1. Grab the [the appropriate windows installer](https://www.postgresql.org/download/windows/) and run it. | ||
2. Put the DLLs in your `C:\WINDOWS\system32` folder | ||
|
||
## Linux | ||
|
||
Use `apt-get` or equivalent. | ||
|
||
|
||
## All | ||
|
||
Once you've installed mysql, you can test your installation with a user of your choice (we'll use the `root` user) by running | ||
```sh | ||
mysqlshow -uroot -p | ||
``` | ||
|
||
Finally, you'll need to create a login config file with the database's master username and password. Replace `root` with the master user account for your database if necessary | ||
|
||
```sh | ||
mysql_config_editor set --login-path=local --host=localhost --user=root --password | ||
``` | ||
|
||
You should now be able to run | ||
```sh | ||
mysqlshow --login-path=local | ||
``` | ||
without having to provide a password in the CLI. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
-- DROP TABLE Test; | ||
DROP TABLE NewTable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-- CREATE TABLE Test ( | ||
-- id INTEGER PRIMARY KEY, | ||
-- name TEXT NOT NULL | ||
-- ); | ||
CREATE TABLE NewTable ( | ||
id INTEGER PRIMARY KEY, | ||
name TEXT NOT NULL | ||
); |
Oops, something went wrong.