1. 之前使用的时候遇到编码有问题。在MYSQL的命令行里输入了status结果显示如下:
Server characterset:latin1
Db characterset:utf8
Client characterset:latin1
Conn. characterset:latin1
解决: 命令行里收入set names utf8结果显示如下:
Server characterset:latin1
Db characterset:utf8
Client characterset:utf8
Conn. characterset:utf8
2. 依然是苦逼的编码.今天往一个表插入数据,结果老是乱码,刚开始以为是表的编码问题, 后来发现改了表的编码以后依然有这样的问题,之后才发现原来表的字段是有编码的。我好土= =!
3. 事务/锁= =!一直没仔细去看过(希望以后开发能用上,嘿嘿)
PS: MYSQL的InnoDB引擎下,可重复读(
By default, InnoDB operates in REPEATABLE READ transaction isolation level and with the innodb_locks_unsafe_for_binlog system variable disabled. In this case, InnoDB uses next-key locks for searches and index scans, which prevents phantom rows (see Section 14.3.9.5, “Avoiding the Phantom Problem Using Next-Key Locking”).
最后
以上就是优雅衬衫最近收集整理的关于mysql set names没反应_MYSQL使用的时候遇到的一些问题的全部内容,更多相关mysql内容请搜索靠谱客的其他文章。
发表评论 取消回复