#1. 安装MySQL sudo apt-get install mysql-server #2.修改MYSQL root用户密码 默认的MySQL安装之后根用户是没有密码的,所以首先用根用户进入: $mysql -u root -p mysql>use mysql; update user set password=...
分类:
数据库 时间:
2014-07-22 22:38:14
阅读次数:
258
mysql-uroot-e"showprocesslist"|grep-i"Locked">>locklist.txt;
forlineinawk‘{print$1}‘locklist.txt
do
echo"kill$line;">>lock_kill.sql
done查看mysql数据库表大小#!/bin/bash
database=cms
user=root
password=‘123456‘
mysql-u${user}-p${password}-e"use$d..
分类:
数据库 时间:
2014-07-22 18:15:42
阅读次数:
334
封装类如下:$host,'port'=>5672,'username'=>$username,'password'=>$password,'vhost'=>'/') */ public function __construct($configs = array(), $exchange...
分类:
Web程序 时间:
2014-07-22 00:33:35
阅读次数:
384
Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;或者Server=myServerAddress;Database=myDataBase;User Id=myU...
分类:
数据库 时间:
2014-07-22 00:17:33
阅读次数:
219
??
----查看缺省profile 中 密码相关的参数配置信息
SQL> SELECT profile,resource_type,resource_name,limit FROM dba_profiles WHERE resource_type='PASSWORD' AND profile='DEFAULT';
PROFILE RES...
分类:
数据库 时间:
2014-07-22 00:11:33
阅读次数:
299
如何生成加密的密码 grub-md5-crypt [root@?~]#?grub-md5-crypt?
Password:?
Retype?password:?
$1$zUV8p1$pWr5yZnJ1ndOBuTfL8Q6b/
or
echo?"xansun"?|?openssl?passwd?-1?-salt?$(<?/dev/uran...
分类:
其他好文 时间:
2014-07-21 23:28:10
阅读次数:
344
varmysql=require(‘mysql‘);varclient=mysql.createConnection({host:‘112.124.54.74‘,port:3306,user:‘yin‘,password:‘691331‘,database:‘hu‘});client.connect(function(error,results){if(error){console.log(‘ConnectionError:‘+error.message);return;}console.log(‘Conne..
分类:
数据库 时间:
2014-07-21 19:48:22
阅读次数:
263
【现象】 系统运行的时候突然无法进入系统了,通过FF浏览器调试,发现错误原因是"ORA-28001: the password has expired"是oracle 账户密码过期。【原因/触发因素】 通过百度查询是由于Oracle11G的新特性所致, Oracle11G创建用户时缺省密码过期限制是...
分类:
数据库 时间:
2014-07-21 14:14:36
阅读次数:
437
最近在做Web开发的时候,使用$.post提交数据,但是回调函数却没有被触发,按F12看控制台输出是:POST *** 400 Bad Request后台是SpringMVC的,设置了断点也不会被触发。后来查看JQuery资料了解到,$.post提交数据只有成功时才触发回调函数,于是改用$.ajax提交数据,添加error回调函数,得到错误信息了,如下图:这个问题是什么原因造成的呢?后来经过测试发...
分类:
其他好文 时间:
2014-07-21 13:32:36
阅读次数:
216
在html5中,文本框,也就是input, type为text,或者password,新增了一个属性placeholder,也就是占位符,以下是firefox浏览器下的表现形式,当输入的时候,占位符就会消失。这个属性非常好用,因为有这个必要h...
分类:
其他好文 时间:
2014-07-21 13:19:16
阅读次数:
483