
1,我通set设置autocommit
查看复制打印?
mysql>set global init_connect="set autocommit=0"//提示用权限更高财户设置
ERROR 1227 (42000): Access deniedyou need (at least one of) the SUPER privilege(s) for this operation
mysql>set autocommit=0
Query OK, 0 rows affected (0.00 sec)
mysql>select @@autocommit//查看autocommit设置
+--------------+
| @@autocommit |
+--------------+
| 0 |
+--------------+
1 row in set (0.00 sec)
2,我修改mysql配置文件my.cnf关闭autocommit
查看复制打印?
[mysqld]
init_connect='SET autocommit=0' //mysqld面加些内容
用第二种关点要注意连接mysql用户权限能于启mysql用户权限init_connect='SET autocommit=0'根本启作用报任何错误汗先看实例
查看复制打印?
zhangy@ubuntu:~$ mysql -umysql
Welcome to the MySQL monitor. Commands end with or \g.
Your MySQL connection id is 1
Server version: 5.5.2-m2-log Source distribution
Type 'help' or '\h' for help. Type '\c' to clear the current input statement.
mysql>select @@autocommit//mysql启用户关闭autocommit功
+--------------+
| @@autocommit |
+--------------+
| 0 |
+--------------+
1 row in set (0.00 sec)
mysql>Ctrl-C -- exit!
Aborted
zhangy@ubuntu:~$ mysql -uroot
Welcome to the MySQL monitor. Commands end with or \g.
Your MySQL connection id is 2
Server version: 5.5.2-m2-log Source distribution
Type 'help' or '\h' for help. Type '\c' to clear the current input statement.
mysql>select @@autocommit//用root财户启功
+--------------+
| @@autocommit |
+--------------+
| 1 |
+--------------+
1 row in set (0.00 sec)
mysqlbug呢我网找找面问题真部内容:
If a user has SUPER privilege, init_connect will not execute
(otherwise if init_connect will a wrong query no one can connect to server).
Note, if init_connect is a wrong query, the connection is closing without any errors
and next command will clause 'lost connection' error.
面点说清楚If a user has SUPER privilege, init_connect will not execute用户更高级权限init_connect根本执行
Internal HDD 内置硬盘驱动器
1、首先打开百度,搜索mysql workbench,到官网上去下载最新的版本,因为最新的版本最字符串的兼容性什么的都做的比较好,bug也会少一些。
2、在workbench页面点击download,跳转到版本选择页,选择windows平台。
3、然后会d出windows平台的下载链接,点击后面的download按钮。
4、然后d到下载页,直接拉到最底下,点击no thanks那个链接。开始下载文件。耐心等待下载完毕,下载完成以后开始安装。
5、双击下载好的文件,开始安装。选择安装目录,
6、选择全部安装,选择确认信息,点击install,开始安装。
7、安装完毕后,启动workbench,这个时候默认的界面就是全英文的界面。如下图中所示
8、打开workbench的安装数据目录,路径是:C:\Program Files\MySQL\MySQL Workbench 6.3 CE\data,打开以后,可以看到下面有一堆的xml结尾的文件,而workbench的菜单就是main_menu.xml。
9、用notepad++这个软件打开main_menu.xml文件。在里面可以找到很多的菜单标识。如下图所示,可以看到File,对应的有一个key=caption。
10、这个时候我们把caption后面对应的值从_File修改为_文件,然后重启workbench再看。
11、可以看到对应的菜单栏就变成中文了。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)