1
|
apt-get
install
ubuntu-cloud-keyring
|
1
2
|
"trusty-updates/kilo main"
>
/etc/apt/sources
.list.d
/cloudarchive-kilo
.list
|
1
|
apt-get update && apt-get dist-upgrade
|
1
|
apt-get
install
mariadb-server python-mysqldb
|
1
2
3
|
[mysqld]
...
bind-address = 10.0.0.11
|
1
2
3
4
5
6
7
|
[mysqld]
...
default-storage-engine = innodb
innodb_file_per_table
collation-server = utf8_general_ci
init-connect =
'SET NAMES utf8'
character-
set
-server = utf8
|
1
2
3
|
[mysqld]
...
bind-address = 10.0.0.11
|
1
2
3
4
5
6
7
|
[mysqld]
...
default-storage-engine = innodb
innodb_file_per_table
collation-server = utf8_general_ci
init-connect =
'SET NAMES utf8'
character-
set
-server = utf8
|
1
|
service mysql restart
|
1
|
mysql_secure_installation
|
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password
for
the root user. If you've just installed MariaDB, and
you haven't
set
the root password yet, the password will be blank,
so you should just press enter here.
Enter current password
for
root (enter
for
none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y
/n
] Y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created
for
them. This isintended only
for
testing, and to
make
the installation
|