Commit bd04183a authored by Hugo Hörnquist's avatar Hugo Hörnquist Committed by Andreas Kempe
Browse files

set up for running mysql in a VM

parent f95f1419
LysNS SQL parts
===============
The debug MySql database is stored on an Virtual Machine
which is in the time of writing 2018-01-09located at
~hugo/VirtualBox VMs/LysMemberSQL
The `manage` script here is for starting, stopping and connecting
to that machine. SSH is also avalible.
Ports and Logins
----------------
Login:
Linux:
user: root
pass: password
MySQL:
user: lysns
pass: password
Ports:
- ssh
- local :: 22
- extern :: 2222
- mysql
- local :: 3306
- extern :: 2223
Other files in this directory
-----------------------------
- domaindb.db -- SQLite Database
- domaindb.schema -- sqlite create script
- domaindb.sql -- mysql create script
- mysql_setup.sql -- mysql user create script
#!/bin/bash
case $1 in
mysql)
mysql \
--host=127.0.0.1 \
--port=2223 \
--user=lysns \
--password=password \
lysns
;;
start)
VBoxManage startvm LysMemberSQL --type headless
;;
stop)
VBoxManage controlvm LysMemberSQL poweroff
;;
*)
echo "==== USAGE ====="
echo "For arg 1 use:"
echo "mysql: connect to mysql on port 2223"
echo "start: start vm"
echo "stop: stop vm"
;;
esac
......@@ -10,8 +10,12 @@ CREATE USER 'lysns'@'localhost'
IDENTIFIED BY 'password';
CREATE USER 'lysns'@'%.lysator.liu.se'
IDENTIFIED BY 'password';
CREATE USER 'lysns'@'_gateway'
IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON lysns.* TO 'lysns'@'localhost'
WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON lysns.* TO 'lysns'@'%.lysator.liu.se'
WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON lysns.* TO 'lysns'@'_gateway'
WITH GRANT OPTION;
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