finishing bat win mysql, add copy to C, working mysql setup
GiteaCi/Librography/pipeline/head Build queued...

This commit is contained in:
2021-11-01 00:42:49 -03:00
parent 0dfe660a65
commit 305bf1b595
75 changed files with 51 additions and 8264 deletions
+1
View File
@@ -0,0 +1 @@
java -jar Librography.jar
+2
View File
@@ -0,0 +1,2 @@
copy ..\dist\Librography.jar C:\Librography\
copy Librography.bat C:\Librography\
+3 -1
View File
@@ -36,15 +36,17 @@ rem ------------------------------------------------
echo Creating access to user. Waiting ...
echo Enter the MySql root password:
set /p rootpassword=
set dbname=applibrography
set dbuser=gowl
set userpassword=gowl
Rem "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" "--defaults-file=C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" "-uroot" "-p"
SET PATH=%PATH%;C:\Program Files\MySQL\MySQL Server 5.7\bin
mysql -uroot -p%rootpassword% --execute="CREATE DATABASE %dbuser%;"
mysql -uroot -p%rootpassword% --execute="CREATE DATABASE %dbname%;"
mysql -uroot -p%rootpassword% --execute="CREATE USER '%dbuser%'@'localhost' IDENTIFIED BY '%userpassword%';"
mysql -uroot -p%rootpassword% --execute="GRANT ALL PRIVILEGES ON %dbuser%.* TO '%dbuser%'@'localhost';"
mysql -uroot -p%rootpassword% --execute="FLUSH PRIVILEGES;"
mysql -uroot -p%rootpassword% --execute="source script.sql"
echo Done.
echo "MySQL user created."
echo "Username: %dbuser%"