鱼C论坛

 找回密码
 立即注册

OpenStack-install-2-Mariadb

已有 415 次阅读2017-8-1 12:30 |个人分类:OpenStack

### MariaDB安装
[root@controller ~]# yum install mariadb mariadb-server python2-PyMySQL -y

[root@controller ~]# vim /etc/my.cnf.d/openstack.cnf
[mysqld]
bind-address = 192.168.1.150
default-storage-engine = innodb
innodb_file_per_table = on
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8

[root@controller ~]# systemctl start mariadb.service
[root@controller ~]# netstat -tunpl | grep :3306
tcp        0      0 192.168.1.150:3306      0.0.0.0:*               LISTEN      76120/mysqld  

[root@controller ~]# mysql_secure_installation 
[root@controller ~]# mysql -u root -p
Enter password: redhat
MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+
3 rows in set (0.00 sec)

MariaDB [(none)]> 

路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 立即注册

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-7-13 03:10

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

返回顶部