Mysql-5.6.4-m7 install in linux

Source: Internet
Author: User
Tags localhost mysql

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

  • 1
  • 2
  • Next Page

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.