|
|
|
@ -9,7 +9,7 @@ import { program } from 'commander'
|
|
|
|
|
const log = console.log
|
|
|
|
|
|
|
|
|
|
program
|
|
|
|
|
.option('-u, --user', 'User')
|
|
|
|
|
.option('-u, --user <name>', 'User')
|
|
|
|
|
|
|
|
|
|
program.parse(process.argv)
|
|
|
|
|
|
|
|
|
@ -49,7 +49,7 @@ user.password = await password({
|
|
|
|
|
// create connection, generate name for db and user, and generate password
|
|
|
|
|
|
|
|
|
|
const connection = await mysql.createConnection({
|
|
|
|
|
host: 'localhost',
|
|
|
|
|
host: '127.0.0.1',
|
|
|
|
|
user: user.name,
|
|
|
|
|
password: user.password,
|
|
|
|
|
port: 3306
|
|
|
|
|