Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
yum update
yum install gcc
yum install kernel-devel
yum install bzip2
yum install kernel-devel-2.6.32-573.el6.i686
mkdir /media/cdrom
mount /dev/scd0 /media/cdrom
sh /media/cdrom/VBoxLinuxAdditions.run


mariadb(mysql db)

...

설치준비( mariadb 10.1)


No Format
vi /etc/yum.repos.d/MariaDB.repo   입력
입력하여 아래내용을 저장한다.
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

위에 내용 입력 후 저장


설치/시작

No Format
yum install -y MariaDB MariaDB-server MariaDB-client


#서비스 시작은 설정완료후 계속진행, 아래 설정참고( vi /etc/my.cnf )
service mariadb start

#setting#mysql root계정및 for몇가지 admin보안설정을 account한다.
mysql_secure_installation


#test#아래 명령을 통해 데이터베이스 조회가 되면성공
mysql -u root -p
MariaDB [(none)]> show databases


 #부팅시#성공을 확인했기때문에 부팅시 자동시작 등록
systemctl enable mariadb.service

reflink : https://blog.bypass.sh/243 

...

No Format
create user 'user명'@'%' identified by '패스워드';
create user 'user명'@'localhost' identified by '패스워드';
flush privileges;


create database DB명;
grant all privileges on DB명.* to 'user명'@'%';
grant all privileges on DB명.* to 'user명'@'localhost';

그외 원격접속허용 : https://zetawiki.com/wiki/MySQL_%EC%9B%90%EA%B2%A9_%EC%A0%91%EC%86%8D_%ED%97%88%EC%9A%A9