14
12

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.

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
14
12
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
14
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?