Percona MySQL 5.6 RPM包方式安裝流程
--去官網下載RPM安裝包
--解壓安裝包
[root@localhost percona-xtrabackup-2.4.4-Linux-x86_64]# tar xvf Percona-Server-5.6.31-77.0-r5c1061c-el6-x86_64-bundle.tar
--安裝資料庫
[root@localhost percona-xtrabackup-2.4.4-Linux-x86_64]# yum localinstall Percona-Server-server-56-5.6.31-rel77.0.el6.x86_64.rpm Percona-Server-client-56-5.6.31-rel77.0.el6.x86_64.rpm Percona-Server-shared-56-5.6.31-rel77.0.el6.x86_64.rpm
--編輯配置檔案
[root@localhost mysql]# vim /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-error=/var/log/mysqld.log
innodb_buffer_pool_size = 128M
--啟動資料庫
[root@localhost mysql]# mysqld_safe --defaults-file=/etc/my.cnf &
[1] 3246
--修改ROOT密碼
[root@localhost mysql]# mysqladmin -u root password 'root'
Warning: Using a password on the command line interface can be insecure.
--刪除資料庫中多餘的root使用者和匿名使用者,只在本地保留一個root使用者
[root@localhost mysql]# mysql -u root -p'root'
mysql> select host,user from mysql.user;
+-----------------------+------+
| host | user |
+-----------------------+------+
| 127.0.0.1 | root |
| ::1 | root |
| localhost | |
| localhost | root |
| localhost.localdomain | |
| localhost.localdomain | root |
+-----------------------+------+
6 rows in set (0.00 sec)
mysql> delete from mysql.user where (user,host) not in (select 'root','localhost');
Query OK, 5 rows affected (0.06 sec)
mysql> commit;
Query OK, 0 rows affected (0.00 sec)
mysql> select host,user from mysql.user;
+-----------+------+
| host | user |
+-----------+------+
| localhost | root |
+-----------+------+
1 row in set (0.00 sec)
--檢視資料庫的執行狀態
[root@localhost mysql]# /etc/init.d/mysql status
SUCCESS! MySQL (Percona Server) running (6584)
--解壓安裝包
[root@localhost percona-xtrabackup-2.4.4-Linux-x86_64]# tar xvf Percona-Server-5.6.31-77.0-r5c1061c-el6-x86_64-bundle.tar
--安裝資料庫
[root@localhost percona-xtrabackup-2.4.4-Linux-x86_64]# yum localinstall Percona-Server-server-56-5.6.31-rel77.0.el6.x86_64.rpm Percona-Server-client-56-5.6.31-rel77.0.el6.x86_64.rpm Percona-Server-shared-56-5.6.31-rel77.0.el6.x86_64.rpm
--編輯配置檔案
[root@localhost mysql]# vim /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-error=/var/log/mysqld.log
innodb_buffer_pool_size = 128M
--啟動資料庫
[root@localhost mysql]# mysqld_safe --defaults-file=/etc/my.cnf &
[1] 3246
--修改ROOT密碼
[root@localhost mysql]# mysqladmin -u root password 'root'
Warning: Using a password on the command line interface can be insecure.
--刪除資料庫中多餘的root使用者和匿名使用者,只在本地保留一個root使用者
[root@localhost mysql]# mysql -u root -p'root'
mysql> select host,user from mysql.user;
+-----------------------+------+
| host | user |
+-----------------------+------+
| 127.0.0.1 | root |
| ::1 | root |
| localhost | |
| localhost | root |
| localhost.localdomain | |
| localhost.localdomain | root |
+-----------------------+------+
6 rows in set (0.00 sec)
mysql> delete from mysql.user where (user,host) not in (select 'root','localhost');
Query OK, 5 rows affected (0.06 sec)
mysql> commit;
Query OK, 0 rows affected (0.00 sec)
mysql> select host,user from mysql.user;
+-----------+------+
| host | user |
+-----------+------+
| localhost | root |
+-----------+------+
1 row in set (0.00 sec)
--檢視資料庫的執行狀態
[root@localhost mysql]# /etc/init.d/mysql status
SUCCESS! MySQL (Percona Server) running (6584)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2123170/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rpm包方式安裝Percona serverServer
- MySQL之——RPM方式安裝MySQL5.6MySql
- mysql 5.6 for linux (rpm包安裝)MySqlLinux
- MySQL 5.6 RPM安裝MySql
- CentOS 6 下RPM方式安裝MySQL5.6CentOSMySql
- rpm 安裝5.6 MySql主從搭建MySql
- 原始碼包方式安裝Percona server原始碼Server
- mysql安裝------RPM包安裝及解除安裝MySql
- linux 環境RPM 安裝MYSQL5.6LinuxMySql
- MySQL 5.7.22 rpm 安裝方式MySql
- Linux平臺(CentOS 6.5) RPM包方式安裝 Mysql 5.7LinuxCentOSMySql
- MySQL 5.6原始碼編譯安裝流程MySql原始碼編譯
- CentOS下使用rpm包安裝MySQLCentOSMySql
- CentOS 6.7下yum方式安裝MySQL 5.6CentOSMySql
- mysql cluster 7.38 叢集安裝 rpm安裝方式MySql
- centos以RPM包方式安裝redis的方法CentOSRedis
- Linux下用rpm方式安裝MySQLLinuxMySql
- centos7下rpm方式安裝mysqlCentOSMySql
- CentOS 下 MySQL 5.6 基於 RPM 的下載、安裝、配置CentOSMySql
- Gitlab環境快速部署(RPM包方式安裝)Gitlab
- mysql8.0.30的RPM包安裝方法MySql
- mysql安裝(rpm)MySql
- Mysql5.6壓縮包安裝到windows&& 解除安裝命令MySqlWindows
- Percona MySQL 5.6 HINT介紹MySql
- Windows 安裝 MySQL 5.6WindowsMySql
- CentOS 安裝 mysql 5.6CentOSMySql
- R1-002 MySQL的rpm安裝方式MySql
- CentOS安裝MySQL的兩種方式——RPM和YUMCentOSMySql
- Mysql 5.7在OL 6上以RPM包安裝MySql
- CentOS7.4使用rpm包安裝mysql5.7.17CentOSMySql
- puppet rpm方式的安裝
- RPM 包安裝報錯
- rpm包安裝和管理
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)線上安裝方式LinuxRedhatCentOSMySql
- 基於Linux的MySQL5.7RPM包安裝LinuxMySql
- yum如何解除安裝已安裝的rpm並安裝本地rpm包
- rpm包安裝升級與解除安裝
- Postgresql Linux版本安裝——RPM包安裝SQLLinux