You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Get-POS
+3-3
Original file line number
Diff line number
Diff line change
@@ -378,9 +378,9 @@ echo "MySQL Database & User Created Successfully!"
378
378
echo""
379
379
echo"Importing Default DB Values..."
380
380
echo""
381
-
mysql -u $(whoami) -p$rootpwd --execute="CREATE USER '$(whoami)_$usernames'@'localhost' IDENTIFIED BY '$passwd';"2> /tmp/error1
382
-
mysql -u $(whoami) -p$rootpwd --execute="GRANT ALL PRIVILEGES ON $(whoami)_$dbname.* TO '$(whoami)_$usernames'@'localhost' IDENTIFIED BY '$passwd' WITH GRANT OPTION;"2> /tmp/error1
383
-
mysql -u $(whoami) -p$rootpwd --execute="FLUSH PRIVILEGES;"2> /tmp/error1
381
+
/usr/bin/uapi Mysql create_database name=$(whoami)_$dbname> /dev/null 2>&1
382
+
/usr/bin/uapi Mysql create_user name=$(whoami)_$usernames password=$passwd> /dev/null 2>&1
383
+
/usr/bin/uapi Mysql set_privileges_on_database user=$(whoami)_$usernames database=$(whoami)_$dbname privileges=ALL%20PRIVILEGES > /dev/null 2>&1
384
384
mysql -hlocalhost -u $(whoami)_$usernames -p$passwd$(whoami)_$dbname<$HOME/OSPOS/database/database.sql &>/dev/null & spinner
0 commit comments