diff --git a/README.md b/README.md index 81e8847..052dc8f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186). -_1245 TILs and counting..._ +_1246 TILs and counting..._ --- @@ -520,6 +520,7 @@ _1245 TILs and counting..._ ### MySQL +- [Default Username And Password For New Instance](mysql/default-username-and-password-for-new-instance.md) - [Display Output In A Vertical Format](mysql/display-output-in-a-vertical-format.md) - [Doing Date Math](mysql/doing-date-math.md) - [Dump A Database To A File](mysql/dump-a-database-to-a-file.md) diff --git a/mysql/default-username-and-password-for-new-instance.md b/mysql/default-username-and-password-for-new-instance.md new file mode 100644 index 0000000..4f1d06d --- /dev/null +++ b/mysql/default-username-and-password-for-new-instance.md @@ -0,0 +1,21 @@ +# Default Username And Password For New Instance + +Let's say you've set up a fresh new instance of MySQL. Perhaps in a docker +container with a MySQL image. When you first connect to the instance, you'll be +prompted for a username and password. + +What is the username and password for a MySQL instance you've just created? + +There are defaults. The default username is `root` and the default password is +left blank. + +So, your connection URL will look something like this: + +``` +mysql://root@localhost:3306 +``` + +You can use that on the CLI or plug it in to the connection details panel of +your favorite SQL client. + +[source](https://dev.mysql.com/doc/refman/8.0/en/default-privileges.html)