Last active
November 3, 2024 20:00
-
-
Save kinngh/216701b0b80911e82675ed65e29c758c to your computer and use it in GitHub Desktop.
Starting MySQL server locally
This file contains hidden or 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
DATABASE_URL="mysql://root:@localhost:3306/shopify-app" |
This file contains hidden or 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
"scripts": { | |
"db:create":"mkdir database; mysqld --initialize-insecure --datadir=./database", | |
"db:start":"mysqld --datadir=./database", | |
"db:stop":"mysqladmin shutdown", | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a reminder to use
--initialize-insecure
when creating local MySQL db for database since I always forget to do that then spend an unnecessary amount of time figuring it out. Adding stuff in package.json means I can easily call the scripts and not have to worry about baselines