mysql的安裝與配置
#yum install -y mariadb mariadb-server python2-pymysql
配置資料庫
編輯檔案/etc/my.cnf.d/openstack.cnf,完成如下配置
設定開機啟動
安裝資料庫服務
[root@controller ~]# mysql_secure_installation
注意第一次提示輸入密碼鍵入回車即可!!!
set root password? [y/n] y
remove anonymous users? [y/n] y
… success!
disallow root login remotely? [y/n] y
… success!
remove test database and access to it? [y/n] y
3.3 相關資料庫的建立及授權
mariadb [(none)]> create database keystone;
query ok, 1 row affected (0.00 sec)
mariadb [(none)]> grant all on keystone.* to keystone@localhost identified by 『keystone』;
query ok, 0 rows affected (0.00 sec)
mariadb [(none)]> grant all on keystone.* to keystone@』%』 identified by 『keystone』;
query ok, 0 rows affected (0.00 sec)
mariadb [(none)]> create database glance;
query ok, 1 row affected (0.00 sec)
mariadb [(none)]> grant all on glance.* to glance@localhost identified by 『glance』;
query ok, 0 rows affected (0.00 sec)
mariadb [(none)]> grant all on glance.* to glance@』%』 identified by 『glance』;
query ok, 0 rows affected (0.00 sec)
mariadb [(none)]> create database nova;
query ok, 1 row affected (0.00 sec)
mariadb [(none)]> grant all on nova.* to nova@localhost identified by 『nova』;
query ok, 0 rows affected (0.00 sec)
mariadb [(none)]> grant all on nova.* to nova@』%』 identified by 『nova』;
query ok, 0 rows affected (0.00 sec)
mariadb [(none)]> create database neutron;
query ok, 1 row affected (0.00 sec)
mariadb [(none)]> grant all on neutron.* to neutron@localhost identified by 『neutron』;
query ok, 0 rows affected (0.00 sec)
mariadb [(none)]> grant all on neutron.* to neutron@』%』 identified by 『neutron』;
query ok, 0 rows affected (0.00 sec)
mariadb [(none)]> show databases;
圖3.
exit 退出資料庫
VMware虛擬機器的安裝與配置
vmware workstation pro 是業界標準的桌面 hypervisor,用於在 linux 或 windows pc 上執行虛擬機器。workstation 16 pro 基於行業定義的技術,在以下方面實現了改進 directx 11 和 opengl 4.1 3d 加速圖形支援 全新...
虛擬機器安裝mysql
1.安裝mysql資料庫 安裝mysql源 yum localinstall mysql57 community release el7 8.noarch.rpm 檢查mysql源是否安裝成功 yum repolist enabled grep mysql.community.安裝mysql yum...
虛擬機器安裝mysql
安裝mysql8.0方法 1.首先,ubuntu安裝mysql8.0 此版本比較好裝 所以要先更新一下源,去mysql官網 2.執行命令,sudo dpkg i mysql apt config 0.8.10 1 all.deb 3.然後更新源,sudo apt update 4.然後安裝mysql...