Centosyum install mysql and set the password (64-bit machine) _ MySQL

Source: Internet
Author: User
Centosyum install mysql and set the password (64-bit machine) CentOS

BitsCN.com

Centos yum install mysql and set the password (64-bit machine)

Yum install mysql

Yum install mysql-server

Yum install mysql-devel

Chgrp-R mysql/var/lib/mysql

Chmod-R 770/var/lib/mysql

Service mysqld start

Mysql

Set password for 'root' @ 'localhost' = PASSWORD ('secret _ password ');

If Transaction Check Error:

The following solutions can be used for errors:

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.i386

File/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 the problem persists, use the following tricks:

Rpm-Uvh -- force mysql-5.0.77-4.el5_5.4.i386.rpm

Rpm-Uvh -- force mysql-server-5.0.77-4.el5_5.4.i386.rpm

Rpm-Uvh -- force mysql-devel-5.0.77-4.el5_5.4.i386.rpm

BitsCN.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.