摘要: 第一步:用帐号登录mysql[root@CentOs5 ~]# mysql -u root第二步:改变用户数据库mysql> use mysqlReading table information for completion of table and column namesYou can turn off this feature to get a quicker startup with -ADatabase changed第三步:修改密码,记得密码要用password()函数进行加密,一定不要忘记!!!mysql>updateusersetpassword=password( 阅读全文
posted @ 2012-08-12 23:32 戴眼镜的码农 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 一、时区1. 查看当前时区date -R2. 修改设置时区方法(1):tzselect方法(2):timeconfig 仅限于RedHat Linux 和 CentOS系统方法(3):dpkg-reconfigure tzdata 适用于Debian3. 复制相应的时区文件,替换CentOS系统时区文件;或者创建链接文件#cp /usr/share/zoneinfo/$主时区/$次时区 /etc/localtime中国是东八区,设置北京/上海的时间可用以下命令:#cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime#reb... 阅读全文
posted @ 2012-08-12 22:50 戴眼镜的码农 阅读(414) 评论(0) 推荐(0) 编辑