Created
September 30, 2016 10:45
-
-
Save tkc/80b66361509c10e6fef293dd9a6a0d56 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum -y localinstall http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm | |
yum -y install mysql-community-server | |
mysql --version | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemctl start mysqld.service | |
systemctl stop mysqld.service | |
systemctl enable mysqld.service // 自動起動 | |
systemctl status mysqld.service | |
systemctl restart mysqld.service | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d -it --privileged -p 80:80 -v /Users/tkc/git/Docker-MT/Code/web0:/var/www --name web0 centos:7 /sbin/init |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/my.cnf | |
# For advice on how to change settings please see | |
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html | |
[mysqld] | |
# | |
# Remove leading # and set to the amount of RAM for the most important data | |
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. | |
# innodb_buffer_pool_size = 128M | |
# | |
# Remove leading # to turn on a very important data integrity option: logging | |
# changes to the binary log between backups. | |
# /etc/my.cnf | |
# log_bin | |
# | |
# Remove leading # to set options mainly useful for reporting servers. | |
# The server defaults are faster for transactions and fast SELECTs. | |
# Adjust sizes as needed, experiment to find the optimal values. | |
# join_buffer_size = 128M | |
# sort_buffer_size = 2M | |
# read_rnd_buffer_size = 2M | |
datadir=/var/lib/mysql | |
socket=/var/lib/mysql/mysql.sock | |
# Disabling symbolic-links is recommended to prevent assorted security risks | |
symbolic-links=0 | |
log-error=/var/log/mysqld.log | |
pid-file=/var/run/mysqld/mysqld.pid | |
# Add utf8 setting | |
character_set_server=utf8 | |
skip-character-set-client-handshake | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## password sample 3rhnIAxj(mx6 | |
mysql_secure_installation | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment