老熟女激烈的高潮_日韩一级黄色录像_亚洲1区2区3区视频_精品少妇一区二区三区在线播放_国产欧美日产久久_午夜福利精品导航凹凸

重慶分公司,新征程啟航

為企業提供網站建設、域名注冊、服務器等服務

MySQL5.7.28源碼安裝

MySQL 5.7.28 源碼安裝

 

作為一家“創意+整合+營銷”的成都網站建設機構,我們在業內良好的客戶口碑。創新互聯提供從前期的網站品牌分析策劃、網站設計、成都網站制作、網站設計、外貿網站建設、創意表現、網頁制作、系統開發以及后續網站營銷運營等一系列服務,幫助企業打造創新的互聯網品牌經營模式與有效的網絡營銷方法,創造更大的價值。

一、介紹:

        除了Oracle商業版數據庫以外, MySQL是一款源代碼開放的市面上使用率最高高的RDBMS數據庫軟件,采用的是GPL開源協議,自己是可以修改MySQL源代碼用來開發自己的系統。同樣也是通過最常用的SQL語句進行管理

MySQL 安裝方式通常分為以下三種:

l  在線Yum安裝

l  離線rpm安裝

l  源碼編譯安裝

二、安裝前環境清理:

前面兩種安裝方式都非常簡單,但是所有安裝方式都共同需要遵頊以下安裝前的步驟:

1)       檢查是否有正在運行的MySQL進程

[root@open_source ~]# ps -ef|grep mysql |grep -v grep

2)       檢查是否有正在運行的MySQL服務

6.x之前

[root@open_source ~]# chkconfig --list |grep mysql

7.x之后

[root@open_source ~]# ls -rtl /etc/init.d/mysqld 
[root@open_source ~]# systemctl status mysql

3)       檢查和刪除是否有系統自帶的Mysql或mariadb

[root@open_source ~]# rpm -qa mysql
[root@open_source ~]# rpm -qa mariadb

三、MySQL軟件下載:

https://downloads.mysql.com/archives/community/

 

四、開始安裝

       4.1 環境準備

l  安裝libaio-devel依賴包

[root@open_source ~]# yum install -y libaio-devel

       4.2 創建用戶及目錄

                  l 創建用戶

[root@open_source ~]# useradd -g mysql mysql

l  創建目錄

 [root@open_source ~]# mkdir /mysql/3306/data

l  賦權

[root@open_source ~]# chown -R mysql.mysql /mysql

       4.3 開始安裝

l         解壓軟件

[root@open_source ~]# cd /usr/local/
[root@open_source local]# tar zxf mysql-5.7.28-linux-glibc2.12-x86_64.tar.gz

l         創建一個軟連接并賦權

[root@open_source local]# ln -s mysql-5.7.28-linux-glibc2.12-x86_64 mysql
[root@open_source local]# chown -R mysql.mysql mysql/

l         配置環境變量

[root@open_source local]# echo "export PATH=/usr/local/mysql/bin:$PATH" /etc/profile
[root@open_source local]# source /etc/profile

l         初始化數據庫

[root@open_source local]# mysqld -initialize-insecure --user=mysql --basedir=/usr/local/mysql --datadir=/mysql/3306/data/

l         配置My.cnf 文件

cat > /etc/my.cnf <

l         準備啟動腳本

[root@open_source ~]# cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld

l         啟動數據庫

[root@open_source ~]# /etc/init.d/mysqld start

l         登錄數據庫

[root@open_source ~]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 29
Server version: 5.7.28-log MySQL Community Server (GPL)
 
Copyright (c) 2000, 2019, 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>

l  MySQL加固:

[root@open_source ~]# /usr/local/mysql/bin/mysql_secure_installation
 
Securing the MySQL server deployment.
 
Connecting to MySQL using a blank password.
 
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: 0
Please set the password for root here.
 
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
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!

                 l  加固后無法直接登錄

[root@open_source ~]# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

l  查看MySQL狀態

mysql> mysql> show master status;
+------------------+----------+--------------+------------------+-------------------------------------------+
| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set                         |
+------------------+----------+--------------+------------------+-------------------------------------------+
| mysql-bin.000009 |     3672 |              |                  | ce8fc1bb-5fd6-11ea-869d-000c29eed638:1-20 |
+------------------+----------+--------------+------------------+-------------------------------------------+
1 row in set (0.00 sec)
 
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| bindb              |
| gtdb               |
| mdp                |
| mysql              |
| performance_schema |
| sys                |
| woo                |
+--------------------+
8 rows in set (0.00 sec)

當前名稱:MySQL5.7.28源碼安裝
本文鏈接:http://www.xueling.net.cn/article/ipigoj.html

其他資訊

在線咨詢
服務熱線
服務熱線:028-86922220
TOP
主站蜘蛛池模板: 无码爆乳超乳中文字幕在线 | 亚洲av无码av另类专区 | 免费看久久久 | 狠狠综合网 | 综合网视频 | 草蹓视频在线观看 | 一级一级国产片 | 欧产日产国产精品 | 美女裸体无遮挡永久免费观看网站 | 久操视频在线免费观看 | 精品国产91亚洲一区二区三区www | 一区二区亚洲精品国产精华液 | 伊人热热久久原色播放WWW | 欧美大色视频在线观看 | 午夜一区一品日本 | 午夜剧场韩 | 久久久青| 久久青青草原AV免费观看 | 27邪态恶动图gif喷水赞一把 | 狠狠躁夜夜躁人人爽天天天天97 | 好大好深好猛好爽视频拍拍拍 | 欧美国产二区 | 国产午夜毛片 | 久久久橹橹橹久久久久高清 | 久久久久国产综合AV天堂 | 欧美日韩亚洲精品内裤 | 99福利影院 | 中国老太太WBBHD | 强壮的公次次弄得我高潮a片日本 | 久久综合久久鬼色 | 99爱免费视频 | 锵锵锵锵锵免费完整观看动漫最新章节 | 精品在线第一页 | 农村妇女毛片精品久久久 | 最近更新2019中文字幕 | 激情信箱免费观看 | 法国《性迷宫》在线观看 | 亚洲欧美色αv在线影视 | 校花高潮抽搐冒白浆视频 | 亚洲欧美综合久久久久久 | 免费无遮挡男女视频 |