installation of MySQL

Source: Internet
Author: User
Tags unzip tgz

Category: mysql/postgresql


CentOS6.3 Source Installation mysql-5.5.27

#mysql5. More than 5 use CMake instead of configure to compile, first need to install CMake

Yum Install CMake

# build MySQL Users and groups

shell> Groupadd MySQL

Shell> useradd-r-G MySQL MySQL

# Unzip tgz package, compile MySQL

Shell> Tar zxvf mysql-5.5.27.src.tar.gz

Shell> CD mysql-5.5.27

Shell> CMake.

Shell> make && make install

# Compile End

# change user and group properties, execute mysql_install_db Initialize database

Shell> Cd/usr/local/mysql

Shell> chown-r Mysql:mysql.

Shell> scripts/mysql_install_db--user=mysql

Shell> chown-r Root.

shell> chown-r MySQL Data

# (optional) Copy the configuration file to/etc directory, start MySQL

shell> CP support-files/my-medium.cnf/etc/my.cnf

Shell> Bin/mysqld_safe--user=mysql &

# (Optional following command) Set MySQL boot from boot

shell> CP Support-files/mysql.server/etc/init.d/mysql.server

The installation process is not smooth and several errors have been encountered.

1. Do not install GCC and gcc-c++, execute cmake report the following error:

==================================================

[Email protected] mysql-5.5.27]# CMake.

--The C compiler identification is unknown

--The CXX compiler identification is unknown

CMake error:your C Compiler: "Cmake_c_compiler-notfound" is not found. Please set Cmake_c_compiler to a valid COMPILER path or name.

CMake error:your CXX Compiler: "Cmake_cxx_compiler-notfound" was not found. Please set Cmake_cxx_compiler to a valid COMPILER path or name.

.

.

.

--Configuring incomplete, Errors occurred!

==================================================

Workaround: Install GCC and gcc-c++

Yum Install GCC

Yum Install gcc-c++

#删除cache文件, do not delete will also error

RM CMakeCache.txt

CMake.

2. At the end of the compilation, the following error is reported:

Warning:bison executable not found in PATH

Workaround: Install Bison

Yum Install Bison

RM CMakeCache.txt

CMake.

#编译通过

Make && make install

#执行时间比较长

3. Unable to start MySQL

Bin/mysqld_safe--user=mysql & Unable to start

Workaround:

Perform a scripts/mysql_install_db--user=mysql again


Well, I don't know why.

--Performing Test have_peercred-success

--looking for include files Have_pam_appl_h

--looking for include files Have_pam_appl_h-not found.

--Looking for strndup

--Looking for Strndup-found

--Looking for event.h

--Looking for Event.h-not found

--Configuring incomplete, Errors occurred!

[[email protected] mariadb-10.0.12]# make

Make: * * * No targets specified and no makefile found. Stop.

I'm not going to do that. You Baidu to see

This article is from the "regular Expressions and fgrep" blog, so be sure to keep this source http://9025736.blog.51cto.com/9015736/1545814

installation of MySQL

Related Article

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.