file-type

如何在VM虚拟机上安装MySQL:教程与文件下载

ZIP文件

下载需积分: 50 | 504.87MB | 更新于2025-01-13 | 88 浏览量 | 4 评论 | 4 下载量 举报 收藏
download 立即下载
MySQL是一个流行的开源关系型数据库管理系统(RDBMS),它使用结构化查询语言(SQL)进行数据库管理。版本5.7.27是MySQL数据库管理系统的一个稳定版本,提供了许多新的特性和改进,其中包括了性能提升、安全增强和复制功能的改进。 在本资源中,提供的"mysql-5.7.27-1.el7.x86_64.rpm-bundle"是一个针对基于RPM(Red Hat Package Manager)的Linux发行版,如CentOS和Red Hat Enterprise Linux (RHEL) 7的打包文件。rpm-bundle通常意味着包含了多个RPM包,这些包可能包括MySQL服务器、客户端、开发库和其他必要的组件。此bundle文件使得用户能够在兼容的虚拟机环境中,如使用VMware或VirtualBox等虚拟化软件创建的虚拟机(VM)上,安装和配置MySQL服务端和客户端。 描述中提到,安装过程包括在虚拟机中进行MySQL的安装,这可能涉及到虚拟机环境的搭建,如安装虚拟机软件、创建新的虚拟机实例、配置操作系统和网络设置等步骤。安装MySQL服务端和客户端后,还需要进行配置,包括但不限于初始化数据库、设置root用户的密码、配置用户权限、设置字符集、优化配置文件以及调整安全设置等,以确保数据库的安全性和性能。 描述里还提到作者的博客上提供了关于如何配置和安装MySQL的教程,这对于那些不熟悉MySQL安装和配置流程的用户来说是一个非常宝贵的资源。用户可以访问博客来获取详细的步骤说明、可能遇到的常见问题和解决方案以及最佳实践。 标签"vm虚拟机安装mysql"表明本资源与在虚拟机中安装MySQL数据库直接相关。对于希望在虚拟环境中尝试MySQL数据库的开发者和系统管理员而言,这是一个实用的参考资源。它不仅包含了安装包,还可能包含了如何在虚拟环境中创建实例和配置网络、存储等高级主题。 至于压缩包子文件的文件名称列表中提到的"数据库客户端和服务端.tar",这表明用户可能还需要下载一个tar格式的压缩包。该压缩包可能包含了与rpm-bundle不同的MySQL客户端和服务端软件包,或者包含了额外的工具和文档,这些内容可能用于在不支持RPM包管理器的环境中安装MySQL,或者用于提供其他平台的安装选项。在Linux环境中,tar包通常用作源代码包,用户需要自行编译安装,或者可能包含已经编译好的二进制文件,适合在特定的虚拟机操作系统上运行。 总结来说,本资源"mysql-5.7.27-1.el7.x86_64.rpm-bundle"包含了用于在基于RPM的Linux虚拟机中安装MySQL服务器和客户端的必要文件,而压缩包子文件"数据库客户端和服务端.tar"可能包含了额外的安装选项或工具。配合作者博客上的教程,这些资源能够帮助用户完成从安装到配置MySQL数据库的整个过程。

相关推荐

filetype

[root@lumingdong tool]# rpm -ivh mysql-community-common-*.rpm warning: mysql-community-common-5.7.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Preparing... ################################# [100%] package mysql-community-common-5.7.22-1.el7.x86_64 is already installed [root@lumingdong tool]# rpm -ivh mysql-community-libs-*.rpm warning: mysql-community-libs-5.7.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Preparing... ################################# [100%] package mysql-community-libs-5.7.22-1.el7.x86_64 is already installed [root@lumingdong tool]# rpm -ivh mysql-community-client-*.rpm warning: mysql-community-client-5.7.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Preparing... ################################# [100%] package mysql-community-client-5.7.22-1.el7.x86_64 is already installed [root@lumingdong tool]# rpm -ivh mysql-community-server-*.rpm warning: mysql-community-server-5.7.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Preparing... ################################# [100%] file /usr/bin/mysql from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-client-5.7.22-1.el7.x86_64 file /usr/bin/mysqladmin from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-client-5.7.22-1.el7.x86_64 file /usr/bin/mysqldump from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-client-5.7.22-1.el7.x86_64 file /usr/bin/mysqlpump from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-client-5.7.22-1.el7.x86_64 file /etc/my.cnf from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/bin/my_print_defaults from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /var/lib/mysql from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/bin/mysql_install_db from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/bin/mysql_ssl_rsa_setup from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/bin/mysql_tzinfo_to_sql from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/bin/mysql_upgrade from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/adt_null.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/auth_socket.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/authentication_ldap_sasl_client.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/connection_control.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/group_replication.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/innodb_engine.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/keyring_file.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/keyring_udf.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/libmemcached.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/locking_service.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/mypluglib.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/mysql_no_login.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/mysqlx.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/rewrite_example.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/rewriter.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/semisync_master.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/semisync_slave.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/validate_password.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/version_token.so from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 file /usr/sbin/mysqld from install of mysql-community-server-minimal-5.7.22-1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.22-1.el7.x86_64 package mysql-community-server-5.7.22-1.el7.x86_64 is already installed file /etc/my.cnf conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/bin/my_print_defaults conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/bin/mysql_install_db conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/bin/mysql_ssl_rsa_setup conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/bin/mysql_tzinfo_to_sql conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/bin/mysql_upgrade conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/adt_null.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/auth_socket.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/authentication_ldap_sasl_client.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/connection_control.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/group_replication.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/innodb_engine.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/keyring_file.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/keyring_udf.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/libmemcached.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/locking_service.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/mypluglib.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/mysql_no_login.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/mysqlx.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/rewrite_example.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/rewriter.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/semisync_master.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/semisync_slave.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/validate_password.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/lib64/mysql/plugin/version_token.so conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /usr/sbin/mysqld conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 file /var/lib/mysql conflicts between attempted installs of mysql-community-server-5.7.22-1.el7.x86_64 and mysql-community-server-minimal-5.7.22-1.el7.x86_64 [root@lumingdong tool]# chown -R mysql:mysql /var/log/mysqld.logchown -R mysql:mysql /var/log/mysqld.log chown: cannot access ‘/var/log/mysqld.logchown’: No such file or directory chown: cannot access ‘mysql:mysql’: No such file or directory [root@lumingdong tool]# chmod 755 /var/log/mysqld.log [root@lumingdong tool]# systemctl start mysqld Failed to get D-Bus connection: No such file or directory [root@lumingdong tool]#

filetype

-rwxrwxrwx 1 root root 598026240 Mar 5 2018 mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar -rw-r--r-- 1 7155 31415 25106088 Mar 5 2018 mysql-community-client-5.7.22-1.el7.x86_64.rpm -rw-r--r-- 1 7155 31415 280800 Mar 5 2018 mysql-community-common-5.7.22-1.el7.x86_64.rpm -rw-r--r-- 1 7155 31415 3781636 Mar 5 2018 mysql-community-devel-5.7.22-1.el7.x86_64.rpm -rw-r--r-- 1 7155 31415 46742952 Mar 5 2018 mysql-community-embedded-5.7.22-1.el7.x86_64.rpm -rw-r--r-- 1 7155 31415 24078476 Mar 5 2018 mysql-community-embedded-compat-5.7.22-1.el7.x86_64.rpm -rw-r--r-- 1 7155 31415 129955496 Mar 5 2018 mysql-community-embedded-devel-5.7.22-1.el7.x86_64.rpm -rw-r--r-- 1 7155 31415 2239868 Mar 5 2018 mysql-community-libs-5.7.22-1.el7.x86_64.rpm -rw-r--r-- 1 7155 31415 2116356 Mar 5 2018 mysql-community-libs-compat-5.7.22-1.el7.x86_64.rpm -rw-r--r-- 1 7155 31415 55743828 Mar 5 2018 mysql-community-minimal-debuginfo-5.7.22-1.el7.x86_64.rpm -rw-r--r-- 1 7155 31415 172992596 Mar 5 2018 mysql-community-server-5.7.22-1.el7.x86_64.rpm -rw-r--r-- 1 7155 31415 15255560 Mar 5 2018 mysql-community-server-minimal-5.7.22-1.el7.x86_64.rpm -rw-r--r-- 1 7155 31415 119716756 Mar 5 2018 mysql-community-test-5.7.22-1.el7.x86_64.rpm [root@lumingdong tool]# rpm -qa | grep mariadb [root@lumingdong tool]# sudo yum remove 'mariadb-libs*' Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. No Match for argument: mariadb-libs* No Packages marked for removal [root@lumingdong tool]# rpm -qa | grep mariadb-libs [root@lumingdong tool]# sudo rpm -e --nodeps mariadb-libs-5.5.60-1.el7_5.x86_64 error: package mariadb-libs-5.5.60-1.el7_5.x86_64 is not installed [root@lumingdong tool]#

资源评论
用户头像
lowsapkj
2025.08.21
适合在虚拟机环境中使用的mysql安装包,步骤明确,易于上手。
用户头像
萱呀
2025.06.15
针对vm虚拟机用户,该mysql版本操作简单,教程齐全,强烈推荐。😀
用户头像
设计师马丁
2025.05.21
提供了详细教程,即使是安装新手也能顺利搞定mysql部署。
用户头像
一曲歌长安
2025.03.11
非常好用的mysql版本,下载后安装配置都很方便,适合新手。
阳光不锈@
  • 粉丝: 4w+
上传资源 快速赚钱