CentOS 6.x使用yum快速安装MySQL 5.5
MySQL 5.5系列成为稳定版已经有一段时间了,但据我调查了解,在生产环境中还是以5.1系列为主。在国内的大公司里,只确定金山在使
MySQL 5.5系列成为稳定版已经有一段时间了,但据我调查了解,在生产环境中还是以5.1系列为主。在国内的大公司里,只确定金山在使用5.5了。
之前一直用自带安装的MySQL 5.1系列,使用了innodb存储引擎,偶发现5.1对innodb引擎支持不怎么好,数据库并发连接数多时会出现丢连接,,于是就想升级到5.5试试。因已安装了5.0,所以不想编译安装了。就直接找了一个国外编译好的5.5的yum源,直接升级,跑了一个月了,发现很稳定!就分享一下:
1、安装MySQL 5.5.x的yum源:
rpm -Uvh
2、安装MySQL客户端的支持包:
yum install libmysqlclient15 --enablerepo=webtatic
3、卸载MySQL老版本的软件包:
yum remove mysql mysql-*
4、安装MySQL 5.5的客户端和服务端:
yum install mysql55 mysql55-server --enablerepo=webtatic //--enablerepo=webtatic 指定使用我们第一步下载的yum源进行下载安装
5、启动MySQL系统服务,更新数据库:
/etc/init.d/mysqld restart
mysql_upgrade
6、附:此台服务器的my.cnf配置
skip-locking
skip-name-resolve
key_buffer = 1024M
back_log = 3000
max_allowed_packet = 4M
table_cache = 512
sort_buffer_size = 8M
read_buffer_size = 8M
myisam_sort_buffer_size = 1024M
thread_cache = 512
query_cache_size = 512M
set-variable = wait_timeout=60
thread_concurrency = 4
log-slow-queries = slow.log
long_query_time = 1
innodb_flush_log_at_trx_commit = 2
innodb_buffer_pool_size = 1024M
#innodb_locks_unsafe_for_binlog = 1
如果不是升级,而是新安装。还需要设置root密码,删除默认的空用户、空密码等等.........

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Because C++11 needs to be used, but the gcc4.4.7 that comes with CentOS does not support it, I decided to upgrade gcc. The operation is as follows: #Backup mv/etc/yum.repos.d/devtools-2.repo/etc/yum.repos.d/devtools-2.repo.bakwgethttp://people.centos.org/tru/devtools-2 /devtools-2.repo-O/etc/yum.repos.d/devtools-2.repoyuminstalldevtoolset-2-gccdevtoolse

1. Download the gitlab installation package. Download the latest Chinese version of the gitlab installation package from [Tsinghua University Open Source Software Mirror Station]. The installation package comes with a simplified Chinese localization package. Download the latest gitlab installation package from [gitlab official website]. 2. Install gitlab, take gitlab-ce-14.9.4-ce.0.el7.x86_64 as an example, upload it to the centos server and use yum to install gitlabyum-yinstallgitlab-ce-14.3.2-ce.0.el7.x86_64. rpm uses yum to install gityum-yinstallgit#Install git and modify the gitlab configuration file vi

Generally speaking, famous Linux systems are basically divided into two categories: RedHat series: Redhat, Centos, Fedora, etc.; Debian series: Debian, Ubuntu, etc. yum (YellowdogUpdater, Modified) is a Shell front-end package manager in Fedora, RedHat and SUSE. apt (AdvancedPackagingTool) is a shell front-end package manager in Debian and Ubuntu. Overview Generally speaking, the famous Linux systems are basically divided into two categories: RedHat series: Redhat, Cento

How to delete php in centos7 yum: 1. Check the PHP version through "php -v"; 2. Use "rpm -qa|grep php" to check the installed PHP related extensions; 3. Uninstall php by executing the "yum remove php" command That’s it.

How to install php using yum on Linux: 1. Execute the "mkdir /usr/local/php" command; 2. Download the updated installation package of the yum source; 3. Install the relevant yum source installation package; 4. Install through the "yum install" command php is enough.

In Linux, yum is a software package manager that exists specifically to solve package dependencies; yum is an improved RPM software manager, which solves the package dependency problems faced by RPM. When the administrator uses yum to install an RPM package, yum will first download the dependency file of the package from the server side, and then download and install all related RPM packages from the server side at once by analyzing this file.
![[Linux Tools]-yum/gdb usage tutorial!](https://img.php.cn/upload/article/000/887/227/170978100851477.jpg?x-oss-process=image/resize,m_fill,h_207,w_330)
yum is a commonly used software package management tool, and gdb is a powerful debugging tool. The following are their usage tutorials: yum usage tutorial: Install software packages: Use the yuminstall command to install software packages. For example, to install the Apache web server, you can run yuminstallhttpd. Upgrade software packages: Use the yumupdate command to upgrade installed software packages. For example, running yumupdate will upgrade all packages in the system. Delete a software package: Use the yumremove command to delete a software package. For example, to remove the Apache Web server, you can run yumremovehttpd. Search for packages: use yumsear

In today's digital era, technology in the field of computer science is changing with each passing day, and operating systems, as the core of computer software systems, are also constantly evolving and innovating. Among them, Linux, as an open source operating system, has received widespread attention and application. In Linux systems, the Yum tool serves as a package manager and plays a vital role in the installation, deletion and update of software. This article will briefly introduce the Yum tool and provide usage guidelines to help readers better utilize this tool to manage Linux systems.
