Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
k8s
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1bc451e2
authored
Dec 04, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加设置mysql密码操作。127.0.0.1修改为localhost
1 parent
f0097a08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
script/seetaas/3-set-mysql.sh
script/seetaas/3-set-mysql.sh
View file @
1bc451e
...
...
@@ -3,9 +3,11 @@ workspace=/workspace/seetaas
#记得修改seetaas-backend的sql语句
mysql_user
=
root
mysql_password
=
seetatech
mysql_host
=
127.0.0.1
#为了兼容容器化部署mysql
mysql_host
=
localhost
#为了兼容容器化部署mysql
########################################设置数据库相关#############################################
#包括授予账号远程连接权限,各个服务组件的数据库语句插入
echo
"使用mysqladmin为mysql设置root密码"
&&
sleep 2
mysqladmin -u
$mysql_user
password
$mysql_password
echo
"mysql用户授权远程机器登陆"
mysql -u
$mysql_user
-p
$mysql_password
-h
$mysql_host
-e
"use mysql;"
mysql -u
$mysql_user
-p
$mysql_password
-h
$mysql_host
-e
"GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' identified by 'seetatech';"
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment