Commit 90fa0628 authored by Chris Croome's avatar Chris Croome

TODO added

parent f09f3199
Pipeline #12951 passed with stage
in 16 seconds
#!/usr/bin/env bash
# This script is based on the assumption that the $USER name
# matches the MYSQL username and that MySQL is running on the
# localhost
# TODO
# - Use https://www.computerhope.com/unix/bash/getopts.htm
# - If $USER root then prompt for -u $MYSQL_USER
# - With no arguments check that the ~/.my.cnf file contain
# the password for the user running the script and that it is
# correct
# - With -p $MYSQL_PASSWD check that the password is correct for
# for the $MYSQL_USER and if it is ensure it is written to the
# ~/.my.cnf file
# Set username to $1
if [[ "${1}" ]]; then
MYSQL_USER="${1}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment