欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

centos7+mysql5.7二進制安裝-創(chuàng)新互聯(lián)

一、優(yōu)化部分

公司主營業(yè)務(wù):成都網(wǎng)站制作、成都做網(wǎng)站、移動網(wǎng)站開發(fā)等業(yè)務(wù)。幫助企業(yè)客戶真正實現(xiàn)互聯(lián)網(wǎng)宣傳,提高企業(yè)的競爭能力。成都創(chuàng)新互聯(lián)是一支青春激揚、勤奮敬業(yè)、活力青春激揚、勤奮敬業(yè)、活力澎湃、和諧高效的團隊。公司秉承以“開放、自由、嚴謹、自律”為核心的企業(yè)文化,感謝他們對我們的高要求,感謝他們從不同領(lǐng)域給我們帶來的挑戰(zhàn),讓我們激情的團隊有機會用頭腦與智慧不斷的給客戶帶來驚喜。成都創(chuàng)新互聯(lián)推出江夏免費做網(wǎng)站回饋大家。

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

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

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

二、安裝部分

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

# groupadd mysql # useradd -g mysql mysql

2、到安裝目錄,解壓安裝文件

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

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

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

4、驗證權(quán)限

# ls -l mysqltotal 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

5、編輯參數(shù)文件

vim /etc/my.cnf [client] port = 3306 socket = /data/mysql/data/mysql.sock [mysqld] server_id=10 port = 3306 user = mysql character-set-server = utf8mb4 default_storage_engine = innodb log_timestamps = SYSTEM socket = /data/mysql/data/mysql.sock basedir = /data/mysql datadir = /data/mysql/data pid-file = /data/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 = /data/mysql/log/mysql-error.log  slow_query_log = 1 long_query_time = 1  slow_query_log_file = /data/mysql/log/mysql-slow.log sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

6、安裝數(shù)據(jù)庫

#  yum -y install libaio # ./bin/mysqld --initialize --user=mysql --basedir=/data/mysql --datadir=/data/mysql/data --innodb_undo_tablespaces=3 --explicit_defaults_for_timestamp

7、配置啟動文件

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

8、配置環(huán)境變量

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

9、查看默認密碼

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

10、初始化密碼

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

11、數(shù)據(jù)庫常規(guī)啟停

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

12、安全配置

# 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在各個系統(tǒng)的安裝教程

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

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

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

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

文章題目:centos7+mysql5.7二進制安裝-創(chuàng)新互聯(lián)
鏈接URL:http://chinadenli.net/article32/diiipc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供做網(wǎng)站企業(yè)網(wǎng)站制作網(wǎng)站導航品牌網(wǎng)站建設(shè)營銷型網(wǎng)站建設(shè)ChatGPT

廣告

聲明:本網(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ù)器托管