缓存可以说是I/O的一种性能优化。缓存流为I/O流增加了内存缓存区。有了缓存区,使得在流上执行skip()\mark()和reset()方法都成为可能。 大纲: BufferedReader类与BufferWriter类 BufferedReader类与BufferWriter类分别继承了Reade
分类:
其他好文 时间:
2016-03-16 01:18:09
阅读次数:
138
在[mysqld]下加:skip-grant-tables 二、重启Mysql服务 net stop mysql net start mysql 三、修改密码 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass'); 四、重新修改my.i
分类:
数据库 时间:
2016-03-14 13:47:34
阅读次数:
144
#TheMySQLserver[mysqld]port=3306socket=/tmp/mysql.sock#skip-locking#是否过滤掉lockkey_buffer_size=256M#(关键选项)内存配置,索引快缓冲区,不是越大越好max_allowed_packet=1M#导入文件(备份,还原)table_open_cache=256#打开表的数量sort_buffer_size=1M#排序缓冲..
分类:
数据库 时间:
2016-03-14 01:52:03
阅读次数:
334
If you have never assigned a root password for MySQL, the server does not require a password at all for connecting as root. However, this is insecure.
分类:
数据库 时间:
2016-03-13 00:28:39
阅读次数:
467
1.whichwhich-showsthefullpathof(shell)commands.[root@localhost~]#whichtop
/usr/bin/top
[root@localhostshell]#whichgrep
aliasgrep=‘grep--color=auto‘
/usr/bin/grep
[root@localhost~]#which--skip-aliasgrep
/usr/bin/grep2.locatelocate-findfilesbyname[root@localh..
分类:
系统相关 时间:
2016-03-10 18:53:52
阅读次数:
238
转自:java并发编程实战 5.3阻塞队列和生产者-消费者模式 BlockingQueue阻塞队列提供可阻塞的put和take方法,以及支持定时的offer和poll方法。如果队列已经满了,那么put方法将阻塞直到空间可用;如果队列为空,那么take方法将阻塞直到有元素可用。队列可以是有界的也可以是
分类:
编程语言 时间:
2016-03-07 22:33:03
阅读次数:
226
In this post we take a tour of the most popular machine learning algorithms. It is useful to tour the main algorithms in the field to get a feeling of
分类:
编程语言 时间:
2016-03-04 19:22:05
阅读次数:
322
1. 忘记root密码编辑mysql主配置文件 my.cnf 在[mysqld]字段下添加参数 skip-grant ,重启数据库服务,这样就可以进入数据库不用授权了 mysql -uroot ,修改相应用户密码 use mysql; update user set password=passwor...
分类:
数据库 时间:
2016-03-04 00:26:42
阅读次数:
294
servicemysqldstop#通知mysql服务vim/etc/my.cnf#编辑配置文件添加skip-grant-tables保存配置文件重启服务mysql-p#登陆mysqlupdatemysql.usersetpassword=password(‘123456‘)whereuser=‘root‘;#讲root密码修改为123456设置#skip-grant-tables关闭设置/etc/init.d/mysqldrestart..
分类:
数据库 时间:
2016-03-03 19:36:34
阅读次数:
259
快速简单的解决办法:根据错误日志情况,简单快速确认故障点,然后确认是否可以跳过这个错误,跳过错误的方法是:setglobalsql_slave_skip_counter=1;跳过并忽略错误。故障整理:在master上删除一条记录时出现的故障。在master上删除一条记录后,slave上因找不到该记录而报错。..
分类:
数据库 时间:
2016-02-29 20:07:17
阅读次数:
196