为了账号安全,请及时绑定邮箱和手机立即绑定

mysql set 关键字的作用范围。

mysql set 关键字的作用范围。

猛跑小猪 2018-07-11 19:16:52
SET var_name = valueenables you to assign values to variables that affect the operation of the server or clients.Many system variables are dynamic and can be changed at runtime by using the SET statement.SET var_name = value 使您能够为影响服务器或客户端操作的变量赋值。许多系统变量是动态的,可以使用SET语句在运行时进行更改那么set设置的系统变量在mysql运行期间一直生效么?似乎生效期间是the current session,那么session是如何定义的?(官方手册18.2.1 MySQL Shell Sessions中没找到存续期间的定义)只有重启mysql之后才会被my.ini中的设置覆盖么?
查看完整描述

2 回答

?
至尊宝的传说

TA贡献1789条经验 获得超10个赞

命令行中connection就是进入mysql到exit期间.然后执行的sql文件属于当前session,并不会另启会话.

查看完整回答
反对 回复 2018-07-15
  • 2 回答
  • 0 关注
  • 634 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信