Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
database-tests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
James Coyle
database-tests
Commits
d195b5a5
Commit
d195b5a5
authored
Dec 19, 2016
by
j38560
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create MYSQL user for deployment.
parent
ace41be0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
bin/remote/setup_mysql.sh
bin/remote/setup_mysql.sh
+11
-9
No files found.
bin/remote/setup_mysql.sh
View file @
d195b5a5
...
...
@@ -10,8 +10,10 @@ echo "mysql-server mysql-server/root_password_again password " | debconf-set-sel
apt-get
install
-y
-q
mysql-server
sed
-i
"s/.*bind-address.*/bind-address = 0.0.0.0/"
/etc/mysql/my
.cnf
sed
-i
"s/.*bind-address.*/bind-address = 0.0.0.0/"
/etc/mysql/my
sql.conf.d/mysqld.cnf
service mysql stop
service mysql start
mysql
-u
root
-e
"CREATE USER 'deployment'@'%' IDENTIFIED BY '';"
mysql
-u
root
-e
"GRANT ALL PRIVILEGES ON * . * TO 'deployment'@'%';"
\ 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