mysql优化:修改mysql的root账号的密码:先停止mysql服务:servicemysqldstop使用--skip-grant-tables忽略密码启动:mysqld_safe--skip-grant-tables&进入mysql修改密码:usemysqlupdateusersetpassword=password(‘mysql‘)whereuser=‘root‘;flushprivileges;查看表占用空间..
分类:
数据库 时间:
2015-05-29 18:28:42
阅读次数:
314
http://lightoj.com/volume_showproblem.php?problem=1348
Finally the Great Magical Lamp was in Aladdin's hand. Now he wanted to return home. But he didn't want to take any help from the Genie because...
分类:
其他好文 时间:
2015-05-29 15:53:19
阅读次数:
111
1.普通备份 mysql
改密码:
mysql-nt??--skip-grant-tables
use?mysql;
UPDATE?user?SET?password=PASSWORD("123456")?WHERE?user=‘root‘;
flush??privileges;
---------------------------
#创建用户r...
分类:
数据库 时间:
2015-05-29 12:23:48
阅读次数:
184
Description
Pedro travelled to Europe to take part in the International Olympiad in Informatics and is coming back home. Since all his friends asked him to bring them some gift, he bought two big...
分类:
其他好文 时间:
2015-05-28 23:15:58
阅读次数:
191
DescriptionMr. Young wishes to take a picture of his class. The students will stand in rows with each row no longer than the row behind it and the lef...
分类:
其他好文 时间:
2015-05-28 17:47:11
阅读次数:
366
GPATime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=4802DescriptionIn college, a student may take several courses. ...
分类:
其他好文 时间:
2015-05-27 22:38:09
阅读次数:
310
Mysql忘记root密码方法一:在/etc/my.cfg[mysqld]下面添加skip-grant-tables或是skip-grant重启MySQLusemysql;UPDATEuserSETPassword=password(‘new-password‘)WHEREUser=‘root‘;mysqlflushprivileges;将my.cfg文件修改回来,重启MySQL即可。方法二:在启动Mysql服务器时加上参..
分类:
数据库 时间:
2015-05-27 16:04:46
阅读次数:
205
描述 小蜗牛是一名ACMer,他特别想加入校ACM队,为此他开始废寝忘食的刷题。小蜗牛不是神,也会因为做不对题目而烦恼。假设小蜗牛做对一道题,他的愉悦值会加一;如果做错一题,他的愉悦值会减一。给定一个初始的愉悦值N(0<=N<=10),当小蜗牛的愉悦值为0时他就会停止做题,转身去做其他的事情。但是他想知道自己这一天做了多少题,现在请你告诉他结果。
输入有多组数据。
每组数据第一行给定一个N,表...
分类:
其他好文 时间:
2015-05-27 13:55:51
阅读次数:
144
Codeforces Round #298 (Div. 2), problem: (A) Exam
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 studied side...
分类:
其他好文 时间:
2015-05-27 10:19:29
阅读次数:
150
现在这个时代,很多是mysql数据库,废话不多说。忘记密码怎么办首先找到启动文件,添加选项--skip-grant-tables--skip-networkingvim/etc/init.d/mysqld
......
......
$exec--datadir="$datadir"--socket="$socketfile"--pid-file="$mypidfile"--skip-grant-tables--skip-net..
分类:
数据库 时间:
2015-05-26 19:07:18
阅读次数:
201