Skip to content

Commit ec51b81

Browse files
committed
Fixed DB access issue
1 parent b58d4d6 commit ec51b81

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/helper/install.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ pip install --upgrade pip
2121
pip install frappe-bench
2222

2323
if [ "$DB" == "mariadb" ]; then
24-
mysql --host 127.0.0.1 --port 3306 -u root -e "SET GLOBAL character_set_server = 'utf8mb4'"
25-
mysql --host 127.0.0.1 --port 3306 -u root -e "SET GLOBAL collation_server = 'utf8mb4_unicode_ci'"
26-
mysql --host 127.0.0.1 --port 3306 -u root -e "CREATE OR REPLACE DATABASE test_site"
27-
mysql --host 127.0.0.1 --port 3306 -u root -e "CREATE OR REPLACE USER 'test_site'@'localhost' IDENTIFIED BY 'test_site'"
28-
mysql --host 127.0.0.1 --port 3306 -u root -e "GRANT ALL PRIVILEGES ON \`test_site\`.* TO 'test_site'@'localhost'"
29-
mysql --host 127.0.0.1 --port 3306 -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'root'" # match site_cofig
30-
mysql --host 127.0.0.1 --port 3306 -u root -e "FLUSH PRIVILEGES"
24+
mysql --host 127.0.0.1 --port 3306 -u root -proot -e "SET GLOBAL character_set_server = 'utf8mb4'"
25+
mysql --host 127.0.0.1 --port 3306 -u root -proot -e "SET GLOBAL collation_server = 'utf8mb4_unicode_ci'"
26+
mysql --host 127.0.0.1 --port 3306 -u root -proot -e "CREATE OR REPLACE DATABASE test_site"
27+
mysql --host 127.0.0.1 --port 3306 -u root -proot -e "CREATE OR REPLACE USER 'test_site'@'localhost' IDENTIFIED BY 'test_site'"
28+
mysql --host 127.0.0.1 --port 3306 -u root -proot -e "GRANT ALL PRIVILEGES ON \`test_site\`.* TO 'test_site'@'localhost'"
29+
mysql --host 127.0.0.1 --port 3306 -u root -proot -e "FLUSH PRIVILEGES"
3130
fi
3231

3332
echo "BRANCH_NAME: ${BRANCH_NAME}"

0 commit comments

Comments
 (0)