4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MariaDBインストール

Last updated at Posted at 2014-07-10

MariaDBインストール

ユーザ作成

groupadd -g 2008 mysql
useradd -u 2008 -g mysql -d /home/mysql -m -s /bin/bash mysql

必要なパッケージのインストール

apt-get -y install libncurses5-dev libaio-dev zlib1g-dev libreadline-dev

配置

cd /usr/local/src
wget -c https://downloads.mariadb.org/interstitial/mariadb-10.0.12/bintar-centos5-amd64/mariadb-10.0.12-linux-x86_64.tar.gz/from/http://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb -O mariadb-10.0.12-linux-x86_64.tar.gz
tar zxvf mariadb-10.0.12-linux-x86_64.tar.gz
mv -i mariadb-10.0.12-linux-x86_64 /usr/local/.
ln -s /usr/local/mariadb-10.0.12-linux-x86_64 /usr/local/mysql

初期化

cd /usr/local/mysql
scripts/mysql_install_db --user=mysql
chown -R root .
chown -R mysql data

設定/initスクリプト

cp -pi support-files/my-medium.cnf /etc/my.cnf
cp -pi support-files/mysql.server /etc/init.d/mysql
vi /etc/my.cnf    # edit MariaDB settings
echo 'export PATH=$PATH:/usr/local/mysql/bin' >> ~/.bashrc
source ~/.bashrc

起動

/etc/init.d/mysql start
bin/mysql_secure_installation

共有ライブラリ追加

echo /usr/local/mysql/lib > /etc/ld.so.conf.d/mariadb.conf
ldconfig
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?