03 2016 档案
摘要:#!/bin/bashhostnameip=`/sbin/ifconfig eth0|grep "inet addr:"|sed 's/Bcast.*$//'g |awk -F ":" {'print $2'}`dns=`cat /etc/resolv.conf |grep -v '#'|sed '
阅读全文
摘要:1. 忘记root密码编辑mysql主配置文件 my.cnf 在[mysqld]字段下添加参数 skip-grant ,重启数据库服务,这样就可以进入数据库不用授权了 mysql -uroot ,修改相应用户密码 use mysql; update user set password=passwor
阅读全文