LoginSignup
12

More than 5 years have passed since last update.

docker上のCentOS7でMariaDBを起動

Last updated at Posted at 2014-07-14

docker上のCentOS7でsystemctlからのmariadbの起動は出来ない - Qiita

docker run --name production -it -p 3306:3306 \
 tukiyo3/centos-ja:7.0 /bin/bash

初期設定

インストール
yum install -y mariadb-server
mysql_install_db --user=mysql --ldata=/var/lib/mysql/

起動

起動
nohup mysqld_safe &
接続
mysql

停止

停止
mysqladmin shutdown

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
12