1.文件 \conf\local.php 增加$conf[‘fnencode‘] = ‘gbk‘;如果存就更改 2.文件 \inc\pageutils.php function utf8_encodeFN($file,$safe=true){
global $conf;
if($conf[‘fnencode‘] == ‘utf-8‘) return $...
错误信息: [Err] 1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_funct...
分类:
其他好文 时间:
2015-05-08 16:43:07
阅读次数:
129
解决的命令:hadoop dfsadmin -safemode leave #关闭safe modesafemode模式NameNode在启动的时候首先进入安全模式,如果datanode丢失的block达到一定的比例(1-dfs.safemode.threshold.pct),则系统会一直处于安全模...
分类:
其他好文 时间:
2015-05-07 16:06:26
阅读次数:
98
vi /etc/my.cnf 查看日志文件路径:log-error=/var/log/mysqld.log查看报错日志:之前的服务器被别人拿了,所以自己买了台美国vps,根据笔记安装完启动mysql,又启动不了。查看了错误日志引用090321 18:55:03 mysqld_safe Startin...
分类:
数据库 时间:
2015-05-07 00:38:00
阅读次数:
244
1. 显示环境变量HOME$ echo $HOME/home/redbooks2. 设置一个新的环境变量hello$ export HELLO="Hello!"$ echo $HELLOHello!3. 使用env命令显示所有的环境变量$ envHOSTNAME=redbooks.safe.orgP...
分类:
系统相关 时间:
2015-05-06 12:30:33
阅读次数:
152
#/etc/init.d/mysqlstop#mysqld_safe--user=mysql--skip-grant-tables--skip-networking&#mysql-urootmysqlmysql>UPDATEuserSETPassword=PASSWORD(’newpassword’)whereUSER=’root’;mysql>FLUSHPRIVILEGES;mysql>quit
分类:
数据库 时间:
2015-05-04 15:44:04
阅读次数:
186
感觉这次的题目顺序很不合理啊...A. Combination LockScrooge McDuck keeps his most treasured savings in a home safe with a combination lock. Each time he wants to pu.....
分类:
其他好文 时间:
2015-05-02 20:41:04
阅读次数:
197
MySQL默认模式是sql_safe_updates=1的。在这个模式下不管你是update还是delete一行where 条件都要指定主键。如果where条件只出现的不是主键就会出错。例子: set sql_safe_updates =1;--开始安全更新、这个是我这个例子的前提。 --第一步.....
分类:
数据库 时间:
2015-04-30 14:01:37
阅读次数:
159
今天用mysql workbench在更新数据的时候,出现了下面错误:15:52:39 update wp_posts set post_content = replace(post_content, '/water', '') Error Code: 1175. You are using saf...
分类:
数据库 时间:
2015-04-28 17:50:28
阅读次数:
197
1- PHP 2- MySQLoptions(MYSQLI_OPT_LOCAL_INFILE, 1); $m->set_local_infile_handler("r"); $m->query("LOAD DATA LOCAL INFILE '/etc/passwd' INTO TABLE a.a"...
分类:
Web程序 时间:
2015-04-28 13:37:21
阅读次数:
280