1.打开MySQL配置文件 my.ini中,添加上skip-grant-tables,可以添加到文件的末尾或者是这添加到[mysqld]的下面(直接添加在my.ini文件最后亲测可以,但是在[mysqld]我没有试过,现在这个文件只要保存即可,就别关了,一会还会用到的!)。2.然后重启MYSQL服务...
分类:
数据库 时间:
2015-04-18 21:59:47
阅读次数:
134
An exam for n students will take place in a long and narrow room, so the students will sit in a line in some order. The teacher suspects that students with
adjacent numbers (i and i?+?1) always stud...
分类:
其他好文 时间:
2015-04-18 20:39:11
阅读次数:
146
1 Bitwise operator Bitwise operators perform a bit wise operation on two operands. They take each bit in one operand and perform the operation with...
分类:
其他好文 时间:
2015-04-17 20:07:47
阅读次数:
434
识别字符串中的整数并转换为数字形式
接口函数:
void take_num(const char *strIn, int *n, unsigned int *outArray)
【输入】 strIn: 输入的字符串
【输出】 n: 统计识别出来的整数个数outArray...
分类:
其他好文 时间:
2015-04-17 18:15:25
阅读次数:
170
1.修改my.ini配置文件2.在其中编辑 添加skip-grant-tables 意思是跳过权限认证3.停止运行MySQL服务4.启动MySQL服务5.修改MySQL的root密码update date set password=password(‘密码’) where user='root';6...
分类:
数据库 时间:
2015-04-17 15:35:32
阅读次数:
151
解决方法如下:编辑my.ini在[mysqld]节点下新增或修改如下两行行skip-name-resolve #忽略主机名的方式访问lower_case_table_names=1 #忽略数据库表名大小写重启mysql服务,问题得到解决。grant all privileges on *.* to ...
分类:
数据库 时间:
2015-04-17 15:32:24
阅读次数:
200
Linux系统停止MySQL进程#service mysqld restart或# /etc/init.d/mysql stop或# killall -TERM mysqld(不推荐)以安全模式启动MySQL# mysqld_safe –skip-grant-tables &或,# mysqld_s...
分类:
数据库 时间:
2015-04-17 11:15:30
阅读次数:
170
网站报错Access denied for user 'root'@'localhost' (using password: YES) 每次的挽救办法就是: /etc/init.d/mysqld stop mysqld_safe --skip-grant-tables &几乎每隔10分钟就出现一次,...
分类:
数据库 时间:
2015-04-16 19:47:30
阅读次数:
194
from numpy import *
# 创建一个实验样本
def loadDataSet():
postingList = [['my','dog','has','flea','problems','help','please'],
['maybe','not','take','him','to','dog','park','stupid'...
分类:
其他好文 时间:
2015-04-15 19:38:37
阅读次数:
160
eclipse下Android无法自动生成apk文件怎么办?现象:创建android工程后,通过手动build/clean或自动build均无法在bin文件夹下生成.apk文件解决方法:进入windows→perferences→Android→Build,去勾选skip packaging and...
分类:
移动开发 时间:
2015-04-15 13:04:01
阅读次数:
145