mysql8防火墙_MySQL8.0-MySQLEnterpriseFirewall

本文档详细介绍了如何在MySQL8.0上安装和配置MySQL Enterprise Firewall,包括启动数据库、手动安装防火墙、查看防火墙状态、注册并保护用户账户,以及如何卸载防火墙。通过实例展示了防火墙如何阻止和记录不匹配的SQL语句,确保数据库安全性。
摘要由CSDN通过智能技术生成

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

MySQL8.0 Enterprise Firewall

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

----------------------------------

Prepare Database

----------------------------------

C:\Users\IH656>E:\mysql\bin\mysqld

--defaults-file=E:\mysql\init\my.ini --console

2018-04-23T08:06:49.837835Z 0 [System] [MY-010116] [Server]

E:\mysql\bin\mysqld

(mysqld 8.0.11-commercial) starting as process 3224

2018-04-23T08:06:52.458635Z 0 [Warning] [MY-010068] [Server]

CA certificate ca.p

em is self signed.

2018-04-23T08:06:52.708235Z 0 [System] [MY-010931] [Server]

E:\mysql\bin\mysqld:

ready for connections. Version:

'8.0.11-commercial' socket: '' port: 3306 My

SQL Enterprise Server - Commercial.

C:\Users\IH656>mysql -u root -p

Enter password: ************

Welcome to the MySQL monitor. Commands end

with ; or \g.

Your MySQL connection id is 33

Server version: 8.0.11-commercial MySQL Enterprise Server -

Commercial

Copyright (c) 2000, 2018, 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>

mysql>

----------------------------------

Installing MySQL Enterprise Firewall

----------------------------------

To install MySQL Enterprise Firewall manually, look in the

share directory of your MySQL installation and choose the script

that is appropriate for your platform. The available scripts differ

in the suffix used to refer to the plugin library file:

win_install_firewall.sql: Choose this script for Windows

systems that use .dll as the file name suffix.

linux_install_firewall.sql: Choose this script for Linux and

similar systems that use .so as the file name suffix.

shell> mysql -u root -p mysql <

linux_install_firewall.sql

Enter password: (enter root password here)

mysql> SHOW GLOBAL VARIABLES LIKE

'mysql_firewall_mode';

+---------------------+-------+

| Variable_name | Value |

+---------------------+-------+

| mysql_firewall_mode | ON |

+---------------------+-------+

For example, to enable the firewall in an option file, use

these lines:

[mysqld]

mysql_firewall_mode=ON

It is also possible to disable or enable the firewall at

runtime:

mysql> SET GLOBAL mysql_firewall_mode = OFF;

mysql> SET GLOBAL mysql_firewall_mode = ON;

mysql>

mysql> use mysql

Database changed

mysql> source E:\mysql\share\win_install_firewall.sql

Database changed

Query OK, 0 rows affected (1.15 sec)

Query OK, 0 rows affected (0.90 sec)

Query OK, 0 rows affected (0.91 sec)

Query OK, 0 rows affected (0.12 sec)

Query OK, 0 rows affected (0.07 sec)

Query OK, 0 rows affected (0.27 sec)

Query OK, 0 rows affected (0.09 sec)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值