<>之前文件权限指的是是否能够对系统的文件读取和写操作。 <>之前 拥有文件权限才可以执行,select . . into ,,输出文件和load data infile…操作, 但是不要把文件,过程,,超级权限授予管理员以外的账号,这样存在严重的安全隐患。 >之前
<强> 1,创建环境强> mysql>, CREATE USER “菲”@“localhost”, IDENTIFIED BY “mypass”; Query 好吧,,0,rows affected (0.01,秒)
mysql>, GRANT select 提醒测试。*,用“菲”@“localhost”;
mysql>, flush 特权; Query 好吧,,0,rows affected (0.00,秒)
mysql>, GRANT select 提醒测试。*,用“菲”@“localhost”; Query 好吧,,0,rows affected (0.00,秒)
mysql>, CREATE TABLE  tab1 ( ,,,,,aa varchar (50), ,,,,,bb varchar (50) ,,,,,); Query 好吧,,0,rows affected (0.02,秒)
mysql>, mysql>, insert into  tab1 价值(“aaa级”、“bbb”); Query 好吧,,1,row affected (0.01,秒)
mysql>, insert into  tab1 价值(“ccc”、“ddd”); Query 好吧,,1,row affected (0.01,秒)
mysql>,
<强> 2,强> (root@master ~) #, mysql -ufiletest - p 密码:Enter Welcome 用,MySQL 监控只,Commands 最终获得with ,趁机\ g。 Your MySQL  connection id  is 7 版本:Server 5.7.13-log Source 分布
Copyright (c), 2000年,2015年,Oracle 和/或its 子公司只All rights 保留。
Oracle is  a registered trademark  of Oracle Corporation 和/或它的 子公司只Other names  may be trademarks of their 各自 的主人。
Type 帮助;”,或“\ h”, for 帮助只Type ‘\ c’,用clear 从而current input 语句。
mysql>, use 测试; Reading table 方式、for completion  of table 以及column 名字 你还要turn off 却;能够feature 用get a quicker startup with a
Database 改变了 mysql>, show 数据库; +--------------------+ |,Database ,,,,,,,,, | +--------------------+ | |,information_schema  |,test ,,,,,,,,,,,,, | +--------------------+ 2,rows set 拷贝;(0.00,sec)
mysql>, select *,得到tab1 into outfile '/mysql/mysql57/st_file1 '; 没有文件权限,倒出报的错!
<强> 3根登陆授权:强> mysql>, grant file 提醒用filetest@localhost; mysql>,, Query 好吧,,0,rows affected (0.01,秒)
mysql>, flush 特权; Query 好吧,,0,rows affected (0.00,秒)
<强> 4,鱼片用户登陆强>
mysql>, use 测试; Reading table 方式、for completion  of table 以及column 名字 你还要turn off 却;能够feature 用get a quicker startup with a