Introduction to the steps to install mysql5.7.18
The following mainly brings you the steps to install mysql5.7.18. I hope these contents can bring you practical use, which is also the main purpose of my article on the steps to install mysql5.7.18. All right, don't talk too much nonsense, let's just read the following.
Download linux source package name mysql-5.7.18.tar.gz other versions are not source packages for example: i386 is 32-compiled, x86 / 64 is 64-bit
Yum-y install boost
Cmake-DCMAKE_INSTALL_PREFIX=/usr/local/mysql-DSYSCONFDIR=/etc-DMYSQL_DATADIR=/usr/local/mysql/data-DMYSQL_TCP_PORT=3306-DMYSQL_USER=mysql-DEXTRA_CHARSETS=all-DDOWNLOAD_BOOST=1-DWITH_BOOST=/usr/local/boost
. / bin/mysqld-initialize-insecure-user=mysql-basedir=/usr/local/mysql/-datadir=/usr/local/mysql/data/
Note that there is no my-default.cnf in downloading a copy of my.cnf from the Internet.
Chown-R mysql:mysql / usr/local/mysql/
Chown-R mysql:mysql / etc/my.cnf
For the above steps to install mysql5.7.18, you do not find it very helpful. If you need to know more, please continue to follow our industry information. I'm sure you'll like it.