docker search centos
docker pull centos
docker images -a
docker run -dit --hostname C7_compiled_5727 --name centos7_complied_mysql_5727 centos
docker container ls -a
docker exec -it centos7_complied_mysql_5727 /bin/bash
yum -y update
yum -y install cmake
yum -y install gcc-c++
yum -y install wget
yum -y install perl
yum -y install libaio
yum -y install net-tools
yum -y install ncurses-devel
yum -y groupinstall "Development Libraries" "Development Tools"
cd / && mkdir MySQL_sources && cd MySQL_sources/
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.27.tar.gz --no-check-certificate
tar xfz mysql-5.7.27.tar.gz
cd mysql-5.7.27
mkdir -p /usr/local/makayal
cmake \
-DCMAKE_INSTALL_PREFIX=/usr/local/makayal/mysql \
-DMYSQL_UNIX_ADDR=/usr/local/makayal/mysql/tmp/mysql.sock \
-DDEFAULT_CHARSET=utf8mb4 \
-DDEFAULT_COLLATION=utf8mb4_bin \
-DWITH_EXTRA_CHARSETS=all \
-DMYSQL_DATADIR=/usr/local/makayal/mysql/data \
-DENABLED_LOCAL_INFILE=1 \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_ARCHIVE_STORAGE_ENGINE=1 \
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
-DWITH_FEDERATED_STORAGE_ENGINE=0 \
-DDOWNLOAD_BOOST=1 \
-DWITH_BOOST=/MySQL/sources \
-DMYSQL_TCP_PORT=5727 \
-DENABLE_DOWNLOADS=1 \
-DWITH_DEBUG=1
make && make install
mkdir -p /usr/local/makayal/mysql/data/
mkdir -p /usr/local/makayal/mysql/tmp/
/usr/local/makayal/mysql/bin/mysqld --initialize-insecure --user=root --datadir=/usr/local/makayal/mysql/data
/usr/local/makayal/mysql/bin/mysqld --user=root --datadir=/usr/local/makayal/mysql/data --debug='d:t:i:F:L:o,/tmp/mysqld.trace' &
docker search centos
docker pull centos
docker images -a
docker run -dit --oom-kill-disable=true --oom-score-adj=1 --memory="4g" --hostname C7_compiled_8017 --name centos7_complied_mysql_8017 centos
docker container ls -a
docker exec -it centos7_complied_mysql_8017 /bin/bash
echo "sslverify=false" >> /etc/yum.conf
yum -y update
yum -y install epel-release
yum -y install cmake3
yum -y install centos-release-scl
yum -y install devtoolset-7-gcc*
yum -y install wget
yum -y install perl
yum -y install libaio
yum -y install net-tools
yum -y install ncurses-devel
yum -y install openssl
yum -y install openssl-devel
yum -y groupinstall "Development Libraries" "Development Tools"
scl enable devtoolset-7 bash
cd / && mkdir MySQL_sources && cd MySQL_sources/
wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.17.tar.gz --no-check-certificate
tar xfz mysql-8.0.17.tar.gz
cd mysql-8.0.17
mkdir -p /usr/local/makayal
cmake3 \
-DCMAKE_INSTALL_PREFIX=/usr/local/makayal/mysql \
-DMYSQL_UNIX_ADDR=/usr/local/makayal/mysql/tmp/mysql.sock \
-DDEFAULT_CHARSET=utf8mb4 \
-DDEFAULT_COLLATION=utf8mb4_bin \
-DWITH_EXTRA_CHARSETS=all \
-DMYSQL_DATADIR=/usr/local/makayal/mysql/data \
-DENABLED_LOCAL_INFILE=1 \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_ARCHIVE_STORAGE_ENGINE=1 \
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
-DWITH_FEDERATED_STORAGE_ENGINE=0 \
-DDOWNLOAD_BOOST=1 \
-DWITH_BOOST=/MySQL/sources \
-DMYSQL_TCP_PORT=8017 \
-DENABLE_DOWNLOADS=1 \
-DFORCE_INSOURCE_BUILD=1 \
-DWITH_SSL=system \
-DWITH_DEBUG=1
make && make install
mkdir -p /usr/local/makayal/mysql/data/
mkdir -p /usr/local/makayal/mysql/tmp/
/usr/local/makayal/mysql/bin/mysqld --initialize-insecure --user=root --datadir=/usr/local/makayal/mysql/data
/usr/local/makayal/mysql/bin/mysqld --user=root --datadir=/usr/local/makayal/mysql/data --debug='d:t:i:F:L:o,/tmp/mysqld.trace' &