在本文中,我们介绍在Ubuntu/Debian系统上安装Percona MySQL Server 8.0的方法。Percona Server for MySQL是Percona创建的MySQL关系数据库管理系统的免费开源发行版,它是Oracle MySQL的完全兼容的直接替代品。以下是在Ubuntu和Debian Linux发行版上安装Percona Server for MySQL的步骤。
相关链接
第一步、添加Percona存储库 1、从Percona下载存储库包: sudo apt update sudo apt install wget wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb 2、然后使用dpkg安装下载的软件包: sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb 上面的命令会将存储库文件添加到/etc/apt/sources.list.d/percona-release.list。
第二步、安装Percona Server for MySQL 8.0 1、启用存储库: sudo percona-release setup ps80 2、启用存储库后,安装Percona Server for MySQL 8.0: sudo apt install percona-server-server 3、提供root密码并在提示时设置选择默认身份验证插件,等待安装完成然后登录MySQL shell: $ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10 Server version: 8.0.13-3 Percona Server (GPL), Release '3', Revision 'a920dd6' Copyright (c) 2009-2018 Percona LLC and/or its affiliates Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> SELECT VERSION(); +-----------+ VERSION() 8.0.13-3 +-----------+ 1 row in set (0.00 sec) mysql> QUIT; 4、可以通过运行以下命令安装Percona Server for MySQL 5.7: sudo apt install percona-server-server-5.7 注:Percona Server for MySQL 8.0自带了TokuDB存储引擎和MyRocks存储引擎,这些存储引擎作为插件安装。
第三步、安装桌面数据库管理工具(可选) 你可以在Ubuntu/Debian系统上安装和配置DBeaver,以更好的进行管理。参考在Ubuntu 18.04系统上安装和配置DBeaver的步骤。
相关主题 |