码迷,mamicode.com
首页 > 数据库 > 详细

linux入门实验手册12 数据库系列1

时间:2019-07-07 21:30:43      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:mys   登录   lin   ant   本地   rust   sdn   rmi   设置   

  1. centos7下mariadb设置默认字符编码:https://blog.csdn.net/qq_35440040/article/details/86084909
  2. select * from students where classid=null; 错误
    select * from students where classid is null; 正确
  3. select * from users where name=‘admin‘ and password=‘‘or ‘1‘=‘1‘;
    select * from users where name=‘admin‘ and password=‘??‘or ‘1‘=‘1??‘;
    sql注入精髓:即在登录页面的密码栏输入以下代码:‘or ‘1‘=‘1
  4. centos7 mariadb5.5 出现错误:This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its decafe log_bin_trust_function_creators variable)
    解决方式:set global log_bin_trust_function_creators=TRUE;
    方法来源及原理:https://blog.csdn.net/topasstem8/article/details/8216740
  5. 左外连接与左外连接扩展:
    左外连接:左表(a_table)的记录将会全部表示出来,而右表(b_table)只会显示符合搜索条件(on后接条件)的记录。右表记录不足的地方均为NULL!!
    ...left (outer) join ...on...
    左外连接扩展:即将交集去除了,但是左表原为全显示,所以就剩了左表去除与右表交集的区域了
    ...left (outer) join ...on...where b.key is null
  6. 远程登录mysql服务,访问mariabd数据库方法:授权
    创建并授权用户账号,可以使用Navicat登录数据库
    grant all on dbname.* to username@‘192.168.23.%‘ identified by ‘centos‘;
    注意此项配置的状态要设置好:skip-networking 只能本地连 端口都关了

linux入门实验手册12 数据库系列1

标签:mys   登录   lin   ant   本地   rust   sdn   rmi   设置   

原文地址:https://www.cnblogs.com/linux521/p/11147901.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!