Install mysql5.1 under CentOS6.5

surroundings###

  1. Brand new Tencent cloud server centos6.5

Start###

  1. Check whether the mysql database has been installed on the server
rpm -qa | grep mysql

My server comes with mysql, now I uninstall it

  1. Uninstall the mysql database in the original system
 rpm -e   mysql-libs-5.1.73-8.el6_8.x86_64;//Generally delete, if you are prompted to rely on other files, you cannot delete
 rpm -e  --nodeps mysql-libs-5.1.73-8.el6_8.x86_64;//Delete forcefully, if there are other dependent files, you can delete them forcefully

  1. Install mysql through yum
yum install -y mysql-server mysql mysql-devel  //Mysql,mysql-server,mysql-devel

Installed!!!

  1. Start mysql service
service mysqld start

  1. Auto start at boot
chkconfig --list  | grep mysqld //Check whether to automatically start mysql at boot

From the screenshot above, you can know that the automatic startup of the mysql database service is turned off

chkconfig  mysqld on //turn on

  1. Change the initial password
mysqladmin -u root  password 'r'

You're done####

mysql Chinese encoding problem in centos####

Chinese coding problem, click me

Recommended Posts

Install mysql5.7 under CentOS7
Install mysql5.1 under CentOS6.5
CentOS7.2 install Mysql5.7.13
CentOS7 install MySQL
CentOS install mysql
CentOS7 install mysql
CentOS 7 install MySQL 5.6
CentOS8 install MySQL8.0
CentOS7 install mysql8
CentOS7 install MySQL8
centos 7.5 install mysql5.7.17
Install MySQL5.7 in centos7
Install mysql under Ubuntu 16.04
Install ActiveMQ under Centos7
Install PostgreSQL12 under CentOS7
Install CentOS under VMware
CentOS 7.2 Yum install MySQL 5.6
Centos7 install Mysql8 tutorial
Centos manually install mysql8
Centos7 install Mysql database
Install Jenkins under Centos 7
Install MariaDB under MariaDB Centos7
Install MySQL under Ubuntu
Install mysql8.0.13 version under Linux CentOS7 system
centos install mysql through yum
Install MySQL 8.x from source code under CentOS7
Install Oracle11gR2 database under CentOS6.9
Install Java JDK8 under CentOS6
1.5 Install Centos7
Install MongoDB database under CentOS7
CentOS 6.8 under linux install mongodb
CentOS8 install MySQL8 (pro test)
Install Mesos tutorial under CentOS7
How to install MySQL on CentOS 8
CentOS7 yum install and start mysql
CentOS Yum compile and install MySQL 5.6
Compile and install LAMP under Centos 5.2
[Introduction to redis] Install redis under Centos
CentOS 7 install Nginx, PHP, MySQL packages
Install MySql with Docker in CentOS7
Install MySQL on Linux CentOS7 (Windows)
CentOS7 yum install and start mysql
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Install Harbor mirror warehouse under CentOS
Centos7 and centos8 install mysql5.6 5.7 8.0 so simple
Centos yum install mysql5.6 or above
Install Python3 and ansible under CentOS8
Install the latest OpenCV4.3 under Centos8
Install and use docker under CentOS 6.8
centos7 .*tar package to install MySQL5.7
Install Python3 and Py under CentOS7
Install Mono 3.2 and Jexus 5.4 under CentOS 6.3
Centos6 install Python2.7.13
Centos7.3 install nginx
CentOS install Redmine
Centos7 install Python 3.6.
Centos7 install protobuf
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker