Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
332e285c
Commit
332e285c
authored
Feb 03, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hack bugs
parent
6886704a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
db_import.sh
db-utils/db_import.sh
+22
-0
No files found.
db-utils/db_import.sh
0 → 100644
View file @
332e285c
# -------------------------------------------------------------------------------
# Filename: db_import.sh
# Revision: 1.1
# Date: 2017/02
# Author: dekun.dai
# Description: 导入基础数据
# Usage:used by ../deploy/database_sync.sh
# -------------------------------------------------------------------------------
database_name
=
$1
mysql_host
=
$2
mysql_user
=
$3
mysql_password
=
$4
db_sub_backup_folder
=
$5
cd
$db_sub_backup_folder
for
entry
in
"
$search_dir
"
./
*
do
echo
"mysql -h
$mysql_host
-u qa -pqatest
$database_name
<
$entry
"
mysql
-h
$mysql_host
-u
$mysql_user
-p
$mysql_password
$database_name
<
$entry
done
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment