The installed mysql database is: mysql-5.6.4-m7, which is installed with the cmake tool. CMake is a cross-platform installation (Compilation) tool. You can use simple statements to describe the installation (compilation process) of all platforms ). He can output a variety of makefile or project files and test the C ++ features supported by the compiler, similar to automake cmake in UNIX: http://www.cmake.org/cmake/resources/software.html 1, installation cmake [root @ localhost tmp] # cd cmake-2.8.9/[root @ localhost cmake-2.8.9] #. /bootstrap [root @ localhost cmake-2.8.9] # make [root @ localhost cmake-2.8.9] # make install if you want to update cmake, you only need to enter the relevant directory and execute cmake. makemake install 2. install mysql [root @ localhost mnt] # cd mysql-5.6.4-m7/[root @ localhost mnt] # cma Ke. the following problem may occur: -- cocould NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) CMake Error at cmake/readline. cmake: 83 (MESSAGE): Curses library not found. please install appropriate package, remove CMakeCache.txt and rerun cmake. on Debian/Ubuntu, package name is libncurses5-dev, on RedHat and derivates it is ncurses-devel.Call Stack (most recent call first): cmake/readline. cmake: 136 (FIND_CU RSES) cmake/readline. cmake: 226 (MYSQL_USE_BUNDLED_LIBEDIT) CMakeLists.txt: 262 (MYSQL_CHECK_READLINE) follow the method prompted above: If redhat is used to install the ncurses-devel package. [Root @ localhost mysql-5.6.4-m7] # yum install ncurses-devel * [root @ localhost mysql-5.6.4-m7] # rm CMakeCache.txt (delete this is to delete CMakeCache.txt, there is a file very similar to him, do not delete the error !) [Root @ localhost mysql-5.6.4-m7] # make [root @ localhost mysql-5.6.4-m7] # make install 3, install the default database [mysql @ localhost mysql] $ cd scripts/[mysql @ localhost scripts] $ ls [mysql @ localhost scripts] $ sudo. /mysql_install_db -- basedir =/usr/local/mysql -- datadir =/usr/local/mysql/data/-- user = There is a prompt after mysql is installed. Take a closer look: to start mysqld at boot time you have to copysupport-files/mysql. server to the right place for your s Ystem please remember to set a password for the MySQL root USER! To do so, start the server, then issue the following commands: /usr/local/mysql // bin/mysqladmin-u root password 'new-password'/usr/local/mysql // bin/mysqladmin-u root-h localhost. localdomain password 'new-password' Alternatively you can run: /usr/local/mysql // bin/mysql_secure_installation which will also give you the option of removing the testdatabases and anonymous user created by default. this isstronugly recommended for production servers. see the manual for more instructions. you can start the MySQL daemon with: cd/usr/local/mysql /; /usr/local/mysql // bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.plcd/usr/local/mysql // mysql-test; perl mysql-test-run.pl