表示 进入内容 361 去 370 的 1042 « 先前的 10 新的记录 | 下一步 10 较早的记录 » Displaying posts with tag: Blog (reset) Nov 15 2017 mysql设置utf-8 Posted by mysql-云栖社区 on Wed 15 Nov 2017 08:24 UTC Tags: Blog, utf-8, variables, server, MySQL, 字符集, 配置 MySQL编码为utf8设置方法: 一、编辑MySql的配置文件 vim /etc/my.cnf 在 [mysqld] 标签下加上三行 default-character-set = utf8 character_set_server = utf8 在 [mysql] 标签下加上一行 default-character-set = utf8 在 [mysql. 【mysql】 【配置】 【Server】 【字符集】 【variables】 【Blog】 …[获取更多] Nov 15 2017 mysql中按in中的数据排序 Posted by mysql-云栖社区 on Wed 15 Nov 2017 08:23 UTC Tags: Blog, by, MySQL, CTO, 排序 有些情况下,我们在用in作为查询条件后希望返回的结果也是按in中的顺序返回,可以用下面的语句搞定: SELECT * FROM (`table_name`) WHERE `field_name` in ('张','三') ORDER BY substring_index('张,三', fie... 【mysql】 【排序】 【BY】 【cto】 【Blog】 点击查看原文> Nov 15 2017 mac报错 Reason: image not found Posted by mysql-云栖社区 on Wed 15 Nov 2017 08:22 UTC Tags: Blog, image, Mac, file, MySQL, last 报错 Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2. 【mac】 【mysql】 【Image】 【file】 【last】 【Blog】 点击查看原文> Nov 15 2017 MySQL登录验证的抓包 Posted by mysql-云栖社区 on Wed 15 Nov 2017 08:07 UTC Tags: Blog, Random, hash, server, string, MySQL, 服务器, 伪代码 理论知识部分摘录自: http://blog.chinaunix.net/uid-9234131-id-5088292.html http://blog.csdn.net/sissiyinxi/article/details/7660389 1. 【服务器】 【mysql】 【random】 【HASH】 【Server】 【string】 【伪代码】 【Blog】 …[获取更多] Nov 15 2017 mysql查询,left join(求并集),where(求交集) Posted by mysql-云栖社区 on Wed 15 Nov 2017 07:56 UTC Tags: Blog, MySQL, CTO 准备(两张表t1,t2): 表t1: mysql> select * from t1; +-------+---------+ | t1_id | t1_name | +-------+---------+ | 1 | t1_1 | | 2 | t1_2 | +-------+---------+ 2 rows in set (0. 【mysql】 【cto】 【Blog】 点击查看原文> Nov 15 2017 mysql忘记root密码的恢复 Posted by mysql-云栖社区 on Wed 15 Nov 2017 07:54 UTC Tags: Blog, update, MySQL, CTO, 测试, 服务器 今天进行服务器测试的时候,却忘记了mysql的密码了,当时晕倒,于是查了下资料.绝对比较好用的方法是 下面这个方法. 在my.cnf的[mysqld]字段加入: skip-grant-tables 然后重启你的mysql,这样就没有密码了. 【服务器】 【mysql】 【测试】 【update】 【cto】 【Blog】 …[获取更多] Nov 15 2017 修改mysql超时时间,mysql sleep线程太多 Posted by mysql-云栖社区 on Wed 15 Nov 2017 07:54 UTC Tags: Blog, variables, MySQL, CTO, 配置, 线程 修改配置文件,重启mysql [mysqld]添加 wait_timeout=1800 说明:30分钟无请求则释放,默认值为28800即8个小时。 或者执行 set global wait_timeout=1800; 查看 show global variables like ... 【mysql】 【线程】 【配置】 【variables】 【cto】 【Blog】 点击查看原文> Nov 15 2017 MySQL - ERROR 1235 (42000) Posted by mysql-云栖社区 on Wed 15 Nov 2017 07:48 UTC Tags: Blog, MySQL, 数据库 1.1.1 现象 导出一个MySQL数据库到一个文件,再导入的时候出现如下错误: ERROR 1235 (42000) at line 267: This version of MySQL doesn't yet support 'multiple triggers with the same action time and event for one table' 1.1.2 原因 导出的内容包含了触发器,所以在导入的时候就出现了这个错误。 【mysql】 【数据库】 【Blog】 点击查看原文> Nov 15 2017 MySQL Workbench不能启动 Posted by mysql-云栖社区 on Wed 15 Nov 2017 07:46 UTC Tags: Windows, Blog, c++, visual, MySQL, CTO 1.1.1 现象 下载的MySQL Workbench ZIP包,解压缩后运行不了,查看windows事件查看器,信息如下: 1.1.2 原因 根据事件查看器的提示,应该是.net的运行环境没有装,但是检查了一下,发现系统中.Net运行环境已经有了,再回到MySQL Workbench的下载页面,发现其系统要求中还有Visual C++ Redistributable for Visual Studio 2013。 【mysql】 【c++】 【windows】 【visual】 【cto】 …[获取更多] Nov 15 2017 记录mysql客户端所有的操作 Posted by mysql-云栖社区 on Wed 15 Nov 2017 07:40 UTC Tags: Blog, log, MySQL, CTO, 服务器 今天在网上看到这个方法,感觉不错,可以记录mysql客户端所有的操作,这个可以为mysql出现问题之后的错误排查有一定的帮助作用,具体操作如下: 在服务器上的/etc/my.cnf中的[client]加入 tee =/tmp/client_mysql. 【服务器】 【mysql】 【LOG】 【cto】 【Blog】 点击查看原文> 表示 进入内容 361 去 370 的 1042 « 先前的 10 新的记录 | 下一步 10 较早的记录 » 最热门的前20位作者 約翰·史密斯 (2) Oracle MySQL Blogs Oracle's MySQL Blog (29) MySQL 其他链接 MySQL Downloads MySQL Docs MySQL Bugs MySQL Forums