1.干掉mysqld进程killallmysqld2.用下面命令启动mysqld_safe–skip-grant-tables3.复制一个终端,已空密码的方式进入mysqlmysql-uroot
mysql>showdatabases;
mysql>usemysql;
showtables;
mysql>select*fromuser;4.更新root密码mysql>updateMySQL.usersetpassword..
分类:
数据库 时间:
2014-08-26 03:02:46
阅读次数:
207
新建目录:mkdir;删除rm-r;(文件?)创建新的用户:useradduser;passwduser‘s;(用户组?)查询已安装软件rpm,安装命令yum(yumsearchlibreoffice;yum-yupdate;yuminstalllibreoffice)磁盘配额:edquota-uvbird;umount;mount|grephome;关闭已启动服务:checonfigautofsoff/on;/e..
分类:
其他好文 时间:
2014-08-26 02:58:35
阅读次数:
273
mongodb中的update的形式是这样的:db.collectionName.update(query, obj, upsert, multi);对于upsert(默认为false):如果upsert=true,如果query找到了符合条件的行,则修改这些行,如果没有找到,则追加一行符合quer...
分类:
数据库 时间:
2014-08-26 00:23:15
阅读次数:
3483
Install Redmine on Centos 6.5 - 64 bit Install Redmine on Centos 6.5 - 64 bit The System Requirements Update the System Install the dependencies packages Install Apache and MySQL Turn off SELinux S...
分类:
其他好文 时间:
2014-08-25 19:36:05
阅读次数:
450
Hibernate 批量update数据时,怎么样做可以回滚,1、serviceManagerDaoImpl代码里对异常不进行try,catch抛出,2、或者抛出throw new RuntimeException()异常
分类:
系统相关 时间:
2014-08-25 16:46:54
阅读次数:
287
最近买了台新电脑,thinkpad e431,装了win8+ubuntu双系统,
ubuntu发现wifi无法搜索到信号,最终解决,
运行一下2个命令:
1.sudo atp-get update
2.sudo atp-get install bcmwl-kernel-source
ok!...
分类:
其他好文 时间:
2014-08-25 13:24:44
阅读次数:
187
Linux Mint不像Ubuntu那样默认配置了中文输入法,需要我们自己安装,下面给出安装方法及输入法所需依赖: sudo add-apt-repository ppa:fcitx-team/nightly sudo apt-get update sudo apt-get install fcitx fcit...
分类:
系统相关 时间:
2014-08-24 18:09:43
阅读次数:
298
scss两种格式 sass 大括号 scss css写法 Arguments: --no-cache –style compressed --update $FileName$:css/$FileNameWithoutExtension$.css 标示部分是 输出的css类型 和额外输出路径 就是 ...
分类:
其他好文 时间:
2014-08-24 12:56:22
阅读次数:
297
安装命令:
sudo apt-get install pepperflashplugin-nonfree
sudo update-pepperflashplugin-nonfree –install
卸载命令:
sudo update-pepperflashplugin-nonfree –unins...
分类:
其他好文 时间:
2014-08-24 03:40:01
阅读次数:
277
update Po_Header set total_fee = ( select ip.payment-ip.post_fee from po_header ip where ip.po_header_id = po_Header_Id)where Trade_ID in( s...
分类:
数据库 时间:
2014-08-24 00:17:51
阅读次数:
278