WIN10 subsystem WSL compile and install MySQL5.7

Source: Internet
Author: User

---restore content starts---

Select ubuntu18.04 in the WIN10 store

http://dev.mysql.com/downloads/mysql/

wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-boost-5.7.23.tar.gz

TAR-ZVXF mysql-boost-5.7.23.tar.gz

CD mysql-5.7.23

sudo apt-get install cmake-y

sudo apt-get install gcc g++-y

Apt-get Install Git-y

Apt-get Install LIBNCURSES5 libncurses5-dev-y

sudo apt-get install-y build-essential

sudo apt-get install Flex bison-y

Install boost 1.59 https://sourceforge.net/projects/boost/

wget https://nchc.dl.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz

The download process is a bit slow

sudo cmake-dcmake_install_prefix=/usr/local/mysql-dmysql_datadir=/usr/local/mysql/data-dsysconfdir=/etc-dwith_ Myisam_storage_engine=1-dwith_innobase_storage_engine=1-dwith_memory_storage_engine=1-dwith_readline=1-dmysql_ Unix_addr=/var/lib/mysql/mysql.sock-dmysql_tcp_port=3306-denabled_local_infile=1-dwith_partition_storage_ Engine=1-dextra_charsets=all-ddefault_charset=utf8-ddefault_collation=utf8_general_ci-denable_downloads=1

If an error occurs, you need to delete the CMakeCache.txt file when compiling again

WIN10 subsystem WSL compile and install MySQL5.7

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.