摘要:
1、连接网络:CentOS minimal.iso安装好后,进入终端,默认是不开网络的, 首先启用网卡, 自动获取ip.ifconfig eth0 updhclient eth0这时候再 ifconfig 一下,就可以看见已经自动分配好IP了2、安装X Window:yum groupinstall "X Window System"3、安装gnome:yum groupinstall "Desktop"(6.2中Desktop就是gnome)然后就等吧,当然在这里之前,可以先安装wget,然后修改下centos的网络源为163的再安装gnome,修改源 阅读全文
posted @ 2013-09-27 10:37
长城的草
阅读(660)
评论(0)
推荐(0)
摘要:
whereis 软件检查数据库mysqlcheck -uroot -p --all-databases修复$ mysql -uroot -p databasename REPAIR TABLE tablename;备份(lock):mysqldump -uroot -psncasdqwe --all-databases --lock-tables=false>yfdata_time.sql 阅读全文
posted @ 2013-09-27 10:37
长城的草
阅读(700)
评论(0)
推荐(0)
摘要:
Windows:1.关闭正在运行的MySQL。2.打开DOS窗口,转到mysql\bin目录。3.输入mysqld --skip-grant-tables回车。如果没有出现提示信息,那就对了。4.再开一个DOS窗口(因为刚才那个DOS窗口已经不能动了),转到mysql\bin目录。5.输入mysql回车,如果成功,将出现MySQL提示符 >6. 连接权限数据库>use mysql; (>是本来就有的提示符,别忘了最后的分号)6.改密码:> update user set password=password("520") where user=&quo 阅读全文
posted @ 2013-09-27 10:37
长城的草
阅读(214)
评论(0)
推荐(0)
摘要:
PHP的数据类型转换属于强制转换,允许转换的PHP数据类型有:•(int)、(integer):转换成整形•(float)、(double)、(real):转换成浮点型•(string):转换成字符串•(bool)、(boolean):转换成布尔类型•(array):转换成数组•(object):转换成对象PHP数据类型有三种转换方式:•在要转换的变量之前加上用括号括起来的目标类型•使用3个具体类型的转换函数,intval()、floatval()、strval()•使用通用类型转换函数settype(mixed var,string type)第一种转换方式: (int) (bool) (f 阅读全文
posted @ 2013-09-27 10:37
长城的草
阅读(253)
评论(0)
推荐(0)
摘要:
select * from wp_98_posts;select * from wp_98_posts p left join wp_click c on p.ID = c.tag_id where c.blog_id = 98 and p.ID = 13 group by tag_id,blog_id ;select * from wp_98_posts;select * from wp_98_posts p left join wp_click c on p.ID = c.tag_idand c.blog_id = 98 and p.ID = 13 group by tag_id,blog 阅读全文
posted @ 2013-09-27 10:37
长城的草
阅读(113)
评论(0)
推荐(0)
摘要:
检查数据库 mysqlcheck -uroot -p --all-databases修复 $ mysql -uroot -p databasename REPAIR TABLE tablename;函数使用:字符串连接、截取update video set vimage = concat(subst... 阅读全文
posted @ 2013-09-27 10:37
长城的草
阅读(93)
评论(0)
推荐(0)
摘要:
原文:jQuery方法扩展:type, toJSON, evalJSON. http://zhkac.iteye.com/blog/499330 .2013-05-19(function($) { // the code of this function is from // http://lucassmith.name/pub/typeof.html $.type = function(o) { var _toS = Object.prototype.toString; var _types = { 'unde... 阅读全文
posted @ 2013-09-27 10:37
长城的草
阅读(306)
评论(0)
推荐(0)
摘要:
导出数据:slapcat-lexport.ldif 阅读全文
posted @ 2013-09-27 10:37
长城的草
阅读(120)
评论(0)
推荐(0)
摘要:
前言最近,一台机器从FreeBSD换为CentOS,一路安装顺利。完事之后发现,网卡没有启用,dmesg | grep eth 命令确定网卡没有驱动导致的。于是开始了一路艰辛的安装过程。安装过程1.先找驱动,主板是华擎的ConRoe945G-DVI,去了华擎的官网找到这块主板。伤心的发现其官网上并没有linux的网卡驱动下载。但是找到网卡是Realtek RTL8111B型号的。2.在Realtek的官网上找到了驱动,并下载之,进入网卡文件的目录执行(根据网卡的安装说明)命令:# make clean modules# make install# depmod -a# insmod ./src 阅读全文
posted @ 2013-09-27 10:37
长城的草
阅读(3714)
评论(0)
推荐(0)
摘要:
http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#specificityhttp://www.cnblogs.com/qieqing/articles/1224085.htmlhttp://homepage.yesy.com/257/8915757.shtml' 阅读全文
posted @ 2013-09-27 10:36
长城的草
阅读(91)
评论(0)
推荐(0)

浙公网安备 33010602011771号