finishing bat win mysql, add copy to C, working mysql setup
GiteaCi/Librography/pipeline/head Build queued...
GiteaCi/Librography/pipeline/head Build queued...
This commit is contained in:
@@ -0,0 +1 @@
|
||||
java -jar Librography.jar
|
||||
@@ -0,0 +1,2 @@
|
||||
copy ..\dist\Librography.jar C:\Librography\
|
||||
copy Librography.bat C:\Librography\
|
||||
@@ -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%"
|
||||
|
||||
Reference in New Issue
Block a user