main
HerrHase 1 year ago
parent e391fc50bf
commit bdba52a624

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

Loading…
Cancel
Save