Compare commits
2
Commits
ecdc0675ea
...
d7926f4aba
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7926f4aba | ||
|
|
bc5429eba5 |
Vendored
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,8 +1,8 @@
|
|||||||
### Clone this repository
|
### Clone this repository
|
||||||
|
|
||||||
HTTPS: https://git.librography.com/flashlan/Librography.git
|
HTTPS: https://git.librography.org/flashlan/Librography.git
|
||||||
|
|
||||||
SSH: git@git.librography.com:flashlan/Librography.git
|
SSH: git@git.librography.org:flashlan/Librography.git
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -65,5 +65,5 @@ Library Manager System writen in Java-Swing available for Windows, Linux and Mac
|
|||||||
|
|
||||||
---
|
---
|
||||||
Softwares:
|
Softwares:
|
||||||
https://cloud.librography.com/index.php/s/3kQZ9DkmAGaCWw6
|
https://cloud.librography.org/index.php/s/3kQZ9DkmAGaCWw6
|
||||||
|
|
||||||
|
|||||||
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
+56
-56
@@ -1,56 +1,56 @@
|
|||||||
@echo off
|
@echo off
|
||||||
:start
|
:start
|
||||||
netstat -o -n -a | findstr 3306
|
netstat -o -n -a | findstr 3306
|
||||||
if %ERRORLEVEL% equ 0 goto FOUND
|
if %ERRORLEVEL% equ 0 goto FOUND
|
||||||
echo MySql not found or not usisng default port 3306...
|
echo MySql not found or not usisng default port 3306...
|
||||||
ECHO Do you wanto open open browser to download it?
|
ECHO Do you wanto open open browser to download it?
|
||||||
ECHO 1. yes
|
ECHO 1. yes
|
||||||
ECHO 2. no
|
ECHO 2. no
|
||||||
set /p choice=Choose your option.
|
set /p choice=Choose your option.
|
||||||
if '%choice%'=='' ECHO "%choice%" is not valid please try again
|
if '%choice%'=='' ECHO "%choice%" is not valid please try again
|
||||||
if '%choice%'=='1' goto open
|
if '%choice%'=='1' goto open
|
||||||
if '%choice%'=='2' goto FIN
|
if '%choice%'=='2' goto FIN
|
||||||
ECHO.
|
ECHO.
|
||||||
goto start
|
goto start
|
||||||
:open
|
:open
|
||||||
echo opening the Mysql download link....
|
echo opening the Mysql download link....
|
||||||
pause
|
pause
|
||||||
START Https://dev.mysql.com/downloads/installer/
|
START Https://dev.mysql.com/downloads/installer/
|
||||||
ECHO you can download the setup fromlink now and after install it we will continue the setup
|
ECHO you can download the setup fromlink now and after install it we will continue the setup
|
||||||
ECHO choose the default options on setup and don`t forget to take a note of the root password
|
ECHO choose the default options on setup and don`t forget to take a note of the root password
|
||||||
pause
|
pause
|
||||||
Rem :continue
|
Rem :continue
|
||||||
Rem echo ok
|
Rem echo ok
|
||||||
goto start
|
goto start
|
||||||
Rem goto FIN
|
Rem goto FIN
|
||||||
:FOUND
|
:FOUND
|
||||||
echo port found. It mean the Mysql is installed
|
echo port found. It mean the Mysql is installed
|
||||||
echo we can continue the setup...
|
echo we can continue the setup...
|
||||||
pause
|
pause
|
||||||
:FIN
|
:FIN
|
||||||
|
|
||||||
echo .
|
echo .
|
||||||
echo .
|
echo .
|
||||||
@echo off
|
@echo off
|
||||||
rem ------------------------------------------------
|
rem ------------------------------------------------
|
||||||
echo Creating access to user. Waiting ...
|
echo Creating access to user. Waiting ...
|
||||||
echo Enter the MySql root password:
|
echo Enter the MySql root password:
|
||||||
set /p rootpassword=
|
set /p rootpassword=
|
||||||
set dbname=applibrography
|
set dbname=applibrography
|
||||||
set dbuser=applibrography
|
set dbuser=applibrography
|
||||||
set userpassword=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"
|
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
|
SET PATH=%PATH%;C:\Program Files\MySQL\MySQL Server 5.7\bin
|
||||||
mysql -uroot -p%rootpassword% --execute="CREATE DATABASE %dbname%;"
|
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="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="GRANT ALL PRIVILEGES ON %dbuser%.* TO '%dbuser%'@'localhost';"
|
||||||
|
|
||||||
mysql -uroot -p%rootpassword% --execute="FLUSH PRIVILEGES;"
|
mysql -uroot -p%rootpassword% --execute="FLUSH PRIVILEGES;"
|
||||||
mysql -uroot -p%rootpassword% --execute="source script.sql"
|
mysql -uroot -p%rootpassword% --execute="source script.sql"
|
||||||
echo Done.
|
echo Done.
|
||||||
echo "MySQL user created."
|
echo "MySQL user created."
|
||||||
echo "Username: %dbuser%"
|
echo "Username: %dbuser%"
|
||||||
echo "Password: %userpassword%"
|
echo "Password: %userpassword%"
|
||||||
rem ------------------------------------------------
|
rem ------------------------------------------------
|
||||||
echo .
|
echo .
|
||||||
echo .
|
echo .
|
||||||
|
|||||||
Reference in New Issue
Block a user