最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

mysql 5.7.19 二進(jìn)制最新安裝

 更新時(shí)間:2017年10月10日 09:50:06   投稿:mrr  
這篇文章主要介紹了mysql 5.7.19 二進(jìn)制最新安裝的相關(guān)資料,需要的朋友可以參考下

首先從官網(wǎng)下載zip archive版本http://dev.mysql.com/downloads/mysql/

MySQL v5.7.19 官方正式版(32/64位 安裝版與zip解壓版)

一、優(yōu)化部分

1.操作系統(tǒng)參數(shù)調(diào)優(yōu)

2.數(shù)據(jù)庫(kù)參數(shù)調(diào)優(yōu)

3.防火墻設(shè)置等

#############################

二、安裝部分

1.創(chuàng)建用戶和組

# groupadd mysql
# useradd -g mysql mysql

2.創(chuàng)建數(shù)據(jù)庫(kù)安裝目錄、授權(quán)

# mkdir /mysql /mysql/data /mysql/log 
# chown -R mysql:mysql /usr/local/mysql 

3.到安裝目錄,解壓安裝文件

#cd /usr/local
# tar -zxvf mysql-5.7.19-linux-glibc2.12-x86_64.tar.gz
# mv mysql-5.7.19-linux-glibc2.12-x86_64 mysql

4.授權(quán)

# chown -R mysql.mysql mysql

5.驗(yàn)證權(quán)限

# ls -l mysql
total 52
drwxr-xr-x 2 mysql mysql 4096 Aug 8 04:06 bin
-rw-r--r-- 1 mysql mysql 17987 Jun 22 22:13 COPYING
drwxr-xr-x 2 mysql mysql 4096 Aug 8 04:06 docs
drwxr-xr-x 3 mysql mysql 4096 Aug 8 04:06 include
drwxr-xr-x 5 mysql mysql 4096 Aug 8 04:06 lib
drwxr-xr-x 4 mysql mysql 4096 Aug 8 04:06 man
-rw-r--r-- 1 mysql mysql 2478 Jun 22 22:13 README
drwxr-xr-x 28 mysql mysql 4096 Aug 8 04:06 share
drwxr-xr-x 2 mysql mysql 4096 Aug 8 04:06 support-files

6.編輯參數(shù)文件

vim /etc/my.cnf
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
server_id=10
port = 3306
user = mysql
character-set-server = utf8mb4
default_storage_engine = innodb
log_timestamps = SYSTEM
socket = /tmp/mysql.sock
basedir = /usr/local/mysql
datadir = /mysql/data
pid-file = /mysql/data/mysql.pid
max_connections = 1000
max_connect_errors = 1000
table_open_cache = 1024
max_allowed_packet = 128M
open_files_limit = 65535
#####====================================[innodb]==============================
innodb_buffer_pool_size = 1024M
innodb_file_per_table = 1
innodb_write_io_threads = 4
innodb_read_io_threads = 4
innodb_purge_threads = 2
innodb_flush_log_at_trx_commit = 1
innodb_log_file_size = 512M
innodb_log_files_in_group = 2
innodb_log_buffer_size = 16M
innodb_max_dirty_pages_pct = 80
innodb_lock_wait_timeout = 30
innodb_data_file_path=ibdata1:1024M:autoextend
innodb_undo_tablespaces=3
#####====================================[log]==============================
log_error = /mysql/log/mysql-error.log 
slow_query_log = 1
long_query_time = 1 
slow_query_log_file = /mysql/log/mysql-slow.log
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

7.安裝數(shù)據(jù)庫(kù)

# ./bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/mysql/data --innodb_undo_tablespaces=3 --explicit_defaults_for_timestamp

8.配置啟動(dòng)文件

cp support-files/mysql.server /etc/init.d/mysql
chkconfig --add mysql
chkconfig mysql on
service mysql start

9.配置環(huán)境變量

vi /etc/profile
#for mysql 
mysql_home=/usr/local/mysql
PATH=$PATH:$mysql_home/bin
source /etc/profile

10.查看默認(rèn)密碼

grep -i password /mysql/log/mysql-error.log 

11.初始化密碼

mysql -uroot -p‘xxxxx‘
SET PASSWORD=PASSWORD(‘root‘);
flush privileges;

12.數(shù)據(jù)庫(kù)常規(guī)啟停

# mysqladmin -uroot -proot shutdown
#mysqld_safe --defaults-file=/etc/my.cnf &
#ps -ef|grep mysql

13.安全配置

# mysql_secure_installation 
Securing the MySQL server deployment.
Enter password for user root: 
VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD plugin?
Press y|Y for Yes, any other key for No: y
There are three levels of password validation policy:
LOW  Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary         file
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 2
Using existing password for root.
Estimated strength of the password: 25 
Change the password for root ? ((Press y|Y for Yes, any other key for No) : y
New password: 
Re-enter new password: 
Sorry, passwords do not match.
New password: 
Re-enter new password: 
Sorry, passwords do not match.
New password: 
Re-enter new password: 
Estimated strength of the password: 50 
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
 ... Failed! Error: Your password does not satisfy the current policy requirements
New password: 
Re-enter new password: 
Estimated strength of the password: 100 
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.
Normally, root should only be allowed to connect from
‘localhost‘. This ensures that someone cannot guess at
the root password from the network.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.
By default, MySQL comes with a database named ‘test‘ that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
 - Dropping test database...
Success.
 - Removing privileges on test database...
Success.
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.
All done! 

相關(guān)閱讀:

Mysql在各個(gè)系統(tǒng)的安裝教程

Mysql 5.7.19 免安裝版配置方法教程詳解(64位)

Mysql 5.7.19 免安裝版遇到的坑(收藏)

MySQL 5.7.19安裝目錄下創(chuàng)建my.ini文件的方法

總結(jié)

以上所述是小編給大家介紹的mysql 5.7.19 二進(jìn)制最新安裝,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!

相關(guān)文章

  • MySQL 5.7升級(jí)8.0報(bào)異常:ONLY_FULL_GROUP_BY的問題解決

    MySQL 5.7升級(jí)8.0報(bào)異常:ONLY_FULL_GROUP_BY的問題解決

    本文主要介紹了MySQL 5.7升級(jí)8.0報(bào)異常的問題解決,主要是ONLY_FULL_GROUP_BY,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2024-11-11
  • MySQL索引的優(yōu)化之LIKE模糊查詢功能實(shí)現(xiàn)

    MySQL索引的優(yōu)化之LIKE模糊查詢功能實(shí)現(xiàn)

    這篇文章主要介紹了MySQL索引的優(yōu)化之LIKE模糊查詢功能實(shí)現(xiàn),本文通過示例代碼給大家介紹的非常詳細(xì),感興趣的朋友一起看看吧
    2025-04-04
  • mysql中鎖機(jī)制的最全面講解

    mysql中鎖機(jī)制的最全面講解

    大概幾個(gè)月之前項(xiàng)目中用到事務(wù),需要保證數(shù)據(jù)的強(qiáng)一致性,期間也用到了mysql的鎖,所以本文打算總結(jié)一下mysql的鎖機(jī)制,這篇文章主要給大家介紹了關(guān)于mysql中鎖機(jī)制的相關(guān)資料,需要的朋友可以參考下
    2021-09-09
  • MySQL中獲取當(dāng)前時(shí)間格式的方法匯總

    MySQL中獲取當(dāng)前時(shí)間格式的方法匯總

    在MySQL數(shù)據(jù)庫(kù)開發(fā)中,獲取時(shí)間是一個(gè)常見的需求,MySQL提供了多種方法來獲取當(dāng)前日期、時(shí)間和時(shí)間戳,并且可以對(duì)時(shí)間進(jìn)行格式化、計(jì)算和轉(zhuǎn)換,以下是一些常用的MySQL時(shí)間函數(shù)及其示例,需要的朋友可以參考下
    2024-06-06
  • MySQL在線DDL工具 gh-ost的原理解析

    MySQL在線DDL工具 gh-ost的原理解析

    這篇文章主要介紹了MySQL在線DDL工具 gh-ost,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
    2021-03-03
  • 使用MySQL生成最近24小時(shí)整點(diǎn)時(shí)間臨時(shí)表

    使用MySQL生成最近24小時(shí)整點(diǎn)時(shí)間臨時(shí)表

    MySQL臨時(shí)表是一種只存在于當(dāng)前數(shù)據(jù)庫(kù)連接或會(huì)話期間的表,它們可以被用來存儲(chǔ)臨時(shí)數(shù)據(jù),這些數(shù)據(jù)可以在查詢中被使用,但是它們不會(huì)在數(shù)據(jù)庫(kù)中永久存儲(chǔ),這篇文章主要給大家介紹了關(guān)于如何使用MySQL生成最近24小時(shí)整點(diǎn)時(shí)間臨時(shí)表的相關(guān)資料,需要的朋友可以參考下
    2024-01-01
  • MySQL中json_extract函數(shù)說明及使用方式

    MySQL中json_extract函數(shù)說明及使用方式

    今天看mysql中的json數(shù)據(jù)類型,涉及到一些使用,使用到了函數(shù)json_extract來,下面這篇文章主要給大家介紹了關(guān)于MySQL中json_extract函數(shù)說明及使用方式的相關(guān)資料,需要的朋友可以參考下
    2022-08-08
  • MYSQL 創(chuàng)建函數(shù)出錯(cuò)的解決方案

    MYSQL 創(chuàng)建函數(shù)出錯(cuò)的解決方案

    在程序開發(fā)過程中,大家有沒有遇到過mysql函數(shù)不能創(chuàng)建,我是遇到過,是一個(gè)很麻煩的問題,上網(wǎng)搜了些相關(guān)資料,整理在一起了,供大家參考,幫助那些需要幫助的朋友
    2015-08-08
  • MySQL如何比較兩個(gè)表數(shù)據(jù)的差異

    MySQL如何比較兩個(gè)表數(shù)據(jù)的差異

    這篇文章主要介紹了MySQL比較兩個(gè)表數(shù)據(jù)的差異,這些方式可以根據(jù)具體需求和數(shù)據(jù)結(jié)構(gòu)選擇合適的方法來比較兩個(gè)表的數(shù)據(jù)差異,本文給大家介紹的非常詳細(xì),需要的朋友可以參考下
    2023-10-10
  • MySQL分組查詢、排序查詢、分頁查詢以及執(zhí)行順序

    MySQL分組查詢、排序查詢、分頁查詢以及執(zhí)行順序

    MySQL數(shù)據(jù)查詢是數(shù)據(jù)庫(kù)操作中最常見的操作之一,它可以幫助我們從數(shù)據(jù)庫(kù)中獲取所需的數(shù)據(jù),下面這篇文章主要給大家介紹了關(guān)于MySQL分組查詢、排序查詢、分頁查詢以及執(zhí)行順序的相關(guān)資料,需要的朋友可以參考下
    2024-02-02

最新評(píng)論

蒙城县| 凤台县| 芮城县| 中宁县| 弥渡县| 堆龙德庆县| 鄂州市| 唐山市| 翁源县| 嵊泗县| 响水县| 双城市| 韩城市| 永丰县| 太仆寺旗| 西吉县| 探索| 邹城市| 九龙城区| 西和县| 巴彦县| 古田县| 喀什市| 玛曲县| 黎川县| 舞钢市| 广灵县| 枣阳市| 云阳县| 叶城县| 文安县| 固镇县| 汉中市| 高平市| 凤城市| 政和县| 抚州市| 平顶山市| 南澳县| 开封县| 寿光市|