欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

mysql5.7.17安裝配置

一、創(chuàng)建msql用戶

專注于為中小企業(yè)提供網(wǎng)站建設(shè)、網(wǎng)站設(shè)計服務(wù),電腦端+手機端+微信端的三站合一,更高效的管理,為中小企業(yè)射陽免費做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了上1000家企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實現(xiàn)規(guī)模擴充和轉(zhuǎn)變。

#添加運行MySQL的用戶,禁止該用戶登錄系統(tǒng)
[root@openstack-01 ~]# useradd  mysql -s /sbin/nologin

二、創(chuàng)建相關(guān)目錄

#創(chuàng)建目錄
[root@openstack-01 ~]# mkdir /data/mysql/mysql3306/{conf,data,logs,tmp} -p

#修改目錄權(quán)限
[root@openstack-01 ~]# chown -R mysql.mysql /data/mysql

三、創(chuàng)建配置文件

[root@openstack-01 ~]# cat /data/mysql/mysql3306/conf/mysql_3306.cnf 
#my.cnf
[client]
port            = 3306
socket          = /tmp/mysql3306.sock

[mysql]
prompt="\\u@\\h [\\d]>" 
#pager="less -i -n -S"
#tee=/opt/mysql/query.log
no-auto-rehash

[mysqld]
#misc
user = mysql
basedir = /usr/local/mysql
datadir = /data/mysql/mysql3306/data
port = 3306

socket = /tmp/mysql3306.sock
event_scheduler = 0

tmpdir = /data/mysql/mysql3306/tmp
#timeout
interactive_timeout = 300
wait_timeout = 300

#character set
character-set-server = utf8

open_files_limit = 65535
max_connections = 100
max_connect_errors = 100000
lower_case_table_names =1

#symi replication

#rpl_semi_sync_master_enabled=1
#rpl_semi_sync_master_timeout=1000 # 1 second
#rpl_semi_sync_slave_enabled=1

#logs
log-output=file
slow_query_log = 1
slow_query_log_file = slow.log
log-error = error.log
log_warnings = 2
pid-file = mysql.pid
long_query_time = 1
#log-slow-admin-statements = 1
#log-queries-not-using-indexes = 1
log-slow-slave-statements = 1

#binlog
#binlog_format = STATEMENT
binlog_format = row
server-id = 1003306
log-bin = /data/mysql/mysql3306/logs/mysql-bin
max_binlog_size = 256M
sync_binlog = 0
expire_logs_days = 10
#procedure 
log_bin_trust_function_creators=1

#
gtid-mode = on
enforce-gtid-consistency=1


#relay log
skip_slave_start = 1
max_relay_log_size = 128M
relay_log_purge = 1
relay_log_recovery = 1
relay-log=relay-bin
relay-log-index=relay-bin.index
log_slave_updates
#slave-skip-errors=1032,1053,1062
#skip-grant-tables

#buffers & cache
table_open_cache = 2048
table_definition_cache = 2048
table_open_cache = 2048
max_heap_table_size = 96M
sort_buffer_size = 128K
join_buffer_size = 128K
thread_cache_size = 200
query_cache_size = 0
query_cache_type = 0
query_cache_limit = 256K
query_cache_min_res_unit = 512
thread_stack = 192K
tmp_table_size = 96M
key_buffer_size = 8M
read_buffer_size = 2M
read_rnd_buffer_size = 16M
bulk_insert_buffer_size = 32M

#myisam
myisam_sort_buffer_size = 128M
myisam_max_sort_file_size = 10G
myisam_repair_threads = 1

#innodb
innodb_buffer_pool_size = 100M
innodb_buffer_pool_instances = 1
innodb_data_file_path = ibdata1:100M:autoextend
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 8M
innodb_log_file_size = 100M
innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 50
innodb_file_per_table = 1
innodb_rollback_on_timeout
innodb_io_capacity = 2000
transaction_isolation = READ-COMMITTED
innodb_flush_method = O_DIRECT

四、初始化mysql

#開始初始化
[root@openstack-01 ~]# /usr/local/mysql-5.7.17-linux-glibc2.5-x86_64/bin/mysqld --defaults-file=/data/mysql/mysql3306/conf/mysql_3306.cnf --basedir=/usr/local/mysql-5.7.17-linux-glibc2.5-x86_64/ --initialize

#查看初始化后的結(jié)果
[root@openstack-01 ~]# ll /data/mysql/mysql3306/data/
total 409648
-rw-r----- 1 mysql mysql        56 Jun 10 17:27 auto.cnf
-rw-r----- 1 mysql mysql      6236 Jun 10 17:27 error.log
-rw-r----- 1 mysql mysql       413 Jun 10 17:27 ib_buffer_pool
-rw-r----- 1 mysql mysql 104857600 Jun 10 17:27 ibdata1
-rw-r----- 1 mysql mysql 104857600 Jun 10 17:27 ib_logfile0
-rw-r----- 1 mysql mysql 104857600 Jun 10 17:27 ib_logfile1
-rw-r----- 1 mysql mysql 104857600 Jun 10 17:27 ib_logfile2
drwxr-x--- 2 mysql mysql      4096 Jun 10 17:27 mysql
drwxr-x--- 2 mysql mysql      8192 Jun 10 17:27 performance_schema
-rw-r----- 1 mysql mysql       217 Jun 10 17:27 slow.log
drwxr-x--- 2 mysql mysql      8192 Jun 10 17:27 sys

#獲取root用戶密碼
[root@openstack-01 ~]# grep password /data/mysql/mysql3306/data/error.log |awk '{print $11}'
_:;II,r0I;oo

五、啟動mysql

[root@openstack-01 ~]# /usr/local/mysql-5.7.17-linux-glibc2.5-x86_64/bin/mysqld --defaults-file=/data/mysql/mysql3306/conf/mysql_3306.cnf &
[1] 14632
[root@openstack-01 ~]# ps aux |grep mysql |grep -v grep
mysql     14632  2.7  9.8 1067652 184596 pts/0  Sl   17:30   0:00 /usr/local/mysql-5.7.17-linux-glibc2.5-x86_64/bin/mysqld --defaults-file=/data/mysql/mysql3306/conf/mysql_3306.cnf
[root@openstack-01 ~]# ss -tnl |grep 3306
LISTEN     0      70          :::3306                    :::*  


#登錄mysql
[root@openstack-01 ~]# /usr/local/mysql-5.7.17-linux-glibc2.5-x86_64/bin/mysql -u root -p -S /tmp/mysql3306.sock
Enter password:         #輸入上文中獲取到的密碼
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.17-log

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 

#修改root密碼
mysql> alter user 'root'@'localhost' identified by '123456';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

#用新密碼重新登錄
[root@openstack-01 ~]# /usr/local/mysql-5.7.17-linux-glibc2.5-x86_64/bin/mysql -u root -p -S /tmp/mysql3306.sock
Enter password:         #輸入新設(shè)置的密碼,測試正常
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.17-log MySQL Community Server (GPL)

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

網(wǎng)站標(biāo)題:mysql5.7.17安裝配置
網(wǎng)頁網(wǎng)址:http://aaarwkj.com/article26/iijocg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供移動網(wǎng)站建設(shè)、軟件開發(fā)、網(wǎng)頁設(shè)計公司、用戶體驗網(wǎng)站制作、網(wǎng)站導(dǎo)航

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都定制網(wǎng)站網(wǎng)頁設(shè)計
日本中文字幕免费专区| 天堂免费av在线播放| 91熟女激情五月综合| 一本久道久久综合久久鬼色| 毛茸茸的阴户在线观看| 国产激情视频在线观看你懂的| 亚洲精品一区av在线观看| 在线观看男人的天堂av| 日韩精品国产专区一区| 亚洲国产精品综合久久网络| 精品一区无遮挡免费网站| 国产精品自拍午夜福利| 久久精品国产亚洲av无| 婷婷五激情五月激情片| 精品国产一区av在线| 花花草草寻亲记在哪里免费看| 青青草原这里只有精品| 99久久精彩免费视频| 日本人妻伦理在线播放| 国产真实乱偷精品视频免| 一区不卡在线视频免费国产 | 亚洲二区中文字幕在线观看| 国产在线视频不卡福利片| 亚洲av少妇一区二区成年男人| 国产极品美女视频福利| 欧美劲爆三级免费观看| 亚洲精品一区二区av| 亚洲免费一区二区三区四区| 欧美日韩免费r在线视频| 亚洲天堂av现在观看| 日韩a国产v亚洲欧美精品| 蜜桃臀内射一区二区三区| 男男啪啪猛进猛出无遮挡| 国产剧情av色诱女教师| 日本在线高清精品人妻| 欧美日韩伦理片在线观看| 国产性生活大片免费看| 欧美亚洲国语精品一区二区| 久久精品亚洲欧美麻豆| 五月婷婷六月丁香免费视频| 亚洲精品啪啪一区二区|