Skip to content

Instantly share code, notes, and snippets.

@kinngh
Last active November 3, 2024 20:00
Show Gist options
  • Save kinngh/216701b0b80911e82675ed65e29c758c to your computer and use it in GitHub Desktop.
Save kinngh/216701b0b80911e82675ed65e29c758c to your computer and use it in GitHub Desktop.
Starting MySQL server locally
DATABASE_URL="mysql://root:@localhost:3306/shopify-app"
"scripts": {
"db:create":"mkdir database; mysqld --initialize-insecure --datadir=./database",
"db:start":"mysqld --datadir=./database",
"db:stop":"mysqladmin shutdown",
}
@kinngh
Copy link
Author

kinngh commented Nov 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment