-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsteps
40 lines (21 loc) · 1.12 KB
/
steps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
create database ccdaa;
create user 'ccdaa'@'localhost' identified by '123';
GRANT ALL PRIVILEGES ON `ccdaa`.`*` TO `ccdaa`@`localhost`;
show grants for 'ccdaa'@'localhost';
+--------------------------------------------------------------------------------------------------------------+
| Grants for ccdaa@localhost |
+--------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'ccdaa'@'localhost' IDENTIFIED BY PASSWORD '*23AE809DDACAF96AF0FD78ED04B6A265E05AA257' |
| GRANT ALL PRIVILEGES ON `ccdaa`.`*` TO 'ccdaa'@'localhost' |
+--------------------------------------------------------------------------------------------------------------+
== Run on the vagrant machine
cat /sql/ccdaa_all.sql | mysql
== verify our config is good
# apachectl configtest
== Enable required modules
a2enmod rewrite ssl
a2ensite default-ssl
## Apply changes
service apache2 reload
apt-get install php5-mysql
service apache2 restart