var enterpriseModel = enterpriseList.Where(m => m.Name.Contains(keyword)) .Take(10).Select( m => new { id = m.Id, text = m.Name, desc = m.Name }).ToLi ...
分类:
其他好文 时间:
2017-04-20 10:21:37
阅读次数:
119
/* 启动MySQL */ net start mysql /* 连接与断开服务器 */ mysql -h 地址 -P 端口 -u 用户名 -p 密码 /* 跳过权限验证登录MySQL */ mysqld --skip-grant-tables -- 修改root密码 密码加密函数password( ...
分类:
数据库 时间:
2017-04-19 11:40:40
阅读次数:
253
When developing responsive websites, you will constantly be resizing your browser to make sure your site is properly responding to all of the resizes. ...
分类:
Web程序 时间:
2017-04-18 15:03:14
阅读次数:
199
【BlockingQueue】 阻塞队列,支持阻塞的机制,阻塞地放入和得到数据。我们来自行实现LinkedBlockingQueue下面的两个简单的方法put()和take()。 [ put ] 把一个Object加到BlockingQueue里,如果BlockingQueue没有空间,则调用此方法 ...
分类:
其他好文 时间:
2017-04-18 00:43:24
阅读次数:
153
1.停止mysql服务/etc/init.d/mysqldstop重新启动服务/usr/local/mysql/bin/mysqld_safe--skip-grant-tables--skip-networking&注:--skip-networking参数可以阻止远程客户端连接,增加安全性或者vi/etc/my.cnf在[mysqld]中增中以下两行[mysqld]skip-grant-tablesskip-networ..
分类:
数据库 时间:
2017-04-17 22:27:16
阅读次数:
215
You Gotta Care About the Code Pete Goodliffe IT DOESN’T TAKE SHERLOCK HOLMES to work out that good programmers write good code. Bad programmers…don’t. ...
分类:
其他好文 时间:
2017-04-17 14:40:12
阅读次数:
194
在MySQL复制中,如果slave节点上遇到错误,比如数据不存在或者主键冲突等错误时,想要忽略这些错误,可以采用以下几种方法: 1、未启用GTID模式时 只需通过设定 SQL_SLAVE_SKIP_COUNTER 的值,即可忽略一些复制事件。例如: #需要先关闭SLAVE服务 root@imysql ...
分类:
其他好文 时间:
2017-04-17 12:37:26
阅读次数:
148
Recently, the ACM/ICPC team of Marjar University decided to choose some new members from freshmen to take part in the ACM/ICPC competitions of the nex ...
分类:
移动开发 时间:
2017-04-16 16:12:58
阅读次数:
185
Berland National Library has recently been built in the capital of Berland. In addition, in the library you can take any of the collected works of Ber ...
分类:
其他好文 时间:
2017-04-16 13:08:46
阅读次数:
237
Why didn't Caroline recognize the customer straight away ? I bought two expensive dictionaries here half an hour ago, but I forgot to take them with m ...
分类:
其他好文 时间:
2017-04-15 18:11:23
阅读次数:
197