MYSQL-SECR...-LOGIN-PATH(1)
π MYSQL-SECR...-LOGIN-PATH(1) π
okay bestie so this page lives in the MySQL Database System manual, and the page name up top is the truncated icon herself, MYSQL-SECR...-LOGIN-PATH(1). Yes it's giving "abbreviated for the header column", no we're not fixing it, we respect the formatting β¨
πΈ NAME πΈ
mysql-secret-store-login-path β a secret store interface for MySQL login credentails π«Ά
(yes, "credentails". the typo is canon. we love her anyway.)
π¦ SYNOPSIS π¦
mysql-secret-store-login-path <version|store|get|erase|list>
π DESCRIPTION π
mysql-secret-store-login-path interacts with the MySQL secret store system to manage user login credentials. That's the whole job. She stores, gets, and erases secrets β and it all goes down based on JSON data you hand her through standard input. Like, you pipe JSON in, she does her lil thing, periodt. π
β¨ OPTIONS β¨
versionβ displays the program version and then dips. exit stage left, we're done here πstoreβ stores a brand new set of credentials in the secret store. This one needs JSON input through stdin containing the following fields:
{
"ServerURL": "user@host:port",
"SecretType": "<secret type>",
"Secret": "<secret>"
}
getβ gets a set of credentials, based on the server URL and the secret type. The data comes back through stdout as a JSON object that matches what was stored previously. This one needs JSON input through stdin containing the following fields:
{
"ServerURL": "user@host:port",
"SecretType": "<secret type>"
}
eraseβ removes a set of credentials, based on the server URL and the secret type. This one needs JSON input through stdin containing the following fields:
{
"ServerURL": "user@host:port",
"SecretType": "<secret type>"
}
listβ lists all the available credential URLs and secret types. The data is returned as a JSON list through stdout. main character behaviour fr fr π
π EXAMPLES π
Store credentails for local root user:
cat <<EOF | mysql-secret-store-login-path store
{
"ServerURL": "root@localhost:3306",
"SecretType": "password",
"Secret": "P@ssW0rd"
}
EOF
Get credentails for local root user:
cat <<EOF | mysql-secret-store-login-path get
{
"ServerURL": "root@localhost:3306",
"SecretType": "password"
}
EOF
Erase credentails for local root user:
cat <<EOF | mysql-secret-store-login-path erase
{
"ServerURL": "root@localhost:3306",
"SecretType": "password"
}
EOF
List all credentails:
mysql-secret-store-login-path list
and that's the whole vibe check π§ no cap. this page is from MySQL 8.0, dated 23/02/2024, and it literally ate π stay secret, stay stored, mwah πβ¨
π¦ where this page comes from
- ubuntu noble: mysql-shell 8.0.36+dfsg-0ubuntu1 Β· GPL-2.0-only
- ubuntu questing: mysql-shell 8.4.6+dfsg-0ubuntu1
- ubuntu resolute: mysql-shell 8.4.8+dfsg-0ubuntu1 Β· GPL-2.0-only
- ubuntu stonking: mysql-shell 9.7.1+dfsg-0ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms