Centos yum install mysql and set the password (64-bit machine) yum install mysqlyum install mysql-serveryum install mysql-develchgrp-R mysql/var/lib/mysqlchmod-R 770/var/lib/mysqlservice mysqld start mysqlSET password for 'root' @ 'localhost '= PASSWORD ('secret _ password '); if yum install has Transaction Check Error: the Error can be solved as follows: Transaction Check Error: file/usr/lib/mysql/libmysqlclient. so.15.0.0 from install of mysql-5.0.77-4.el5_5.4.i386 conflicts with file from package mysqlclient15-5.0.91-1.jason.1.i386file/usr/lib/mysql/libmysqlclient_r.so.15.0.0 from install of mysql-5.0.77-4.el5_5.4.i386 conflicts with file from package mysqlclient15-5.0.91-1.jason.1.i386 solution: # yum remove mysql-devel mysql-server if still not, use tip: rpm-Uvh -- force mysql-5.0.77-4.el5_5.4.i386.rpmrpm-Uvh -- force mysql-server-5.0.77-4.el5_5.4.i386.rpmrpm-Uvh -- force mysql-devel-5.0.77-4.el5_5.4.i386.rpm