MySQL 5.1.73 설치 - Ubunut 20.04
페이지 정보
작성자 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 에필로그 댓글 0건 조회 1,577회 작성일 23-01-14 18:35본문
sudo apt install -y build-essential
sudo apt install -y libncurses5-dev
sudo useradd mysql
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.73.tar.gz
tar xzvf mysql-5.1.73.tar.gz
cd mysql-5.1.73
./configure \
--prefix=/usr \
--exec-prefix=/usr \
--libexecdir=/usr/sbin \
--datadir=/usr/share \
--localstatedir=/var/lib/mysql \
--includedir=/usr/include \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--with-system-type=debian-linux-gnu \
--enable-shared \
--enable-static \
--enable-thread-safe-client \
--enable-assembler \
--enable-local-infile \
--with-fast-mutexes \
--with-big-tables \
--with-unix-socket-path=/var/run/mysqld/mysqld.sock \
--with-mysqld-user=mysql \
--with-libwrap \
--with-readline \
--with-ssl \
--without-docs \
--with-extra-charsets=all \
--with-plugins=max \
--with-embedded-server \
--with-embedded-privilege-control \
CXXFLAGS="-Wno-narrowing -fpermissive"
make
sudo make install
sudo mkdir -p /etc/mysql
sudo mkdir -p /var/lib/mysql
sudo mkdir -p /etc/mysql/conf.d
sudo vi /etc/mysql/conf.d/mysqld_safe_syslog.cnf
[mysqld_safe]
syslog
sudo cp /usr/share/mysql/my-medium.cnf /etc/mysql/my.cnf
sudo sed -i 's#.*datadir.*#datadir = /var/lib/mysql#g' /etc/mysql/my.cnf
sudo chown mysql:mysql -R /var/lib/mysql
sudo mysql_install_db --user=mysql
sudo mysqld_safe -user=mysql &
sudo /usr/bin/mysql_secure_installation
sudo cp /usr/share/mysql/mysql.server /etc/init.d/mysql
sudo chmod +x /etc/init.d/mysql
sudo update-rc.d mysql defaults
댓글목록
등록된 댓글이 없습니다.