摘要: 参考自文章:http://thedaneshproject.com/posts/how-to-upgrade-mysql-4-to-mysql-5-on-centos-4/1.确定CentOS4操作系统可联网2.使用yum命令卸载mysql4># yum remove mysql># yum remove mysqlclient103.使用yum命令连接CentOS plus 安装mysql5># yum --enablerepo=centosplus install mysql-server># yum --enablerepo=centosplus install 阅读全文
posted @ 2011-07-12 12:26 jackal07 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 1、改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"复制代码代码如下:mysql -u root -pvmwaremysql>use mysql;mysql>update user set host = '%' where user = 'root';mysql> 阅读全文
posted @ 2011-07-12 11:43 jackal07 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 参考自 木头虫网络 文章,链接:http://hi.baidu.com/qmun/blog/item/f5d73901ccac1e097bec2cbe.html参考自 形状奇异的苹果,链接:http://www.cnblogs.com/xianfish/archive/2010/05/16/1736443.html参考自 vegas 链接:http://www.cnblogs.com/Vegaslee/archive/2009/01/04/1368172.html感谢原作者。修改host文件Hosts File# vi /etc/hosts127.0.0.1 localhost localho 阅读全文
posted @ 2011-03-30 17:30 jackal07 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 1创建临时表空间2Sql代码3createtemporarytablespacestbss_tmp4tempfile'E:\oracle\product\10.2.0\oradata\orcl\stbss_temp01.dbf'5size32m6autoextendon7next32mmaxsize2048m8extentmanagementlocal;91011创建数据表空间12Sql代码13createtablespacestbss14logging15datafile'E:\oracle\product\10.2.0\oradata\orcl\stbss01.db 阅读全文
posted @ 2011-03-24 11:02 jackal07 阅读(5401) 评论(0) 推荐(0) 编辑
摘要: SQL>createtablespacetestdatafile'E:\ORACLE\ORADATA\DB228\test.ora'2size5M;表空间已创建。SQL>createusertestidentifiedbytestdefaulttablespacetest;用户已创建SQL>grantconnect,resource,dbatotest;授权成功。SQL>ORACLE中,表空间是数据管理的基本方法,所有用户的对象要存放在表空间中,也就是用户有空间的使用权,才能创建用户对象.否则是不充许创建对象,因为就是想创建对象,如表,索引等,也没有地方 阅读全文
posted @ 2011-03-23 17:18 jackal07 阅读(878) 评论(0) 推荐(0) 编辑
摘要: 1、查看表空间的名称及大小 selectt.tablespace_name,round(sum(bytes/(1024*1024)),0)ts_size fromdba_tablespacest,dba_data_filesd wheret.tablespace_name=d.tablespace_name groupbyt.tablespace_name; 2、查看表空间物理文件的名称及大小 selecttablespace_name,file_id,file_name, round(bytes/(1024*1024),0)total_space fromdba_data_files ord 阅读全文
posted @ 2011-03-23 11:32 jackal07 阅读(454) 评论(0) 推荐(0) 编辑
摘要: mysql ERROR 11302007-08-29 20:46当使用Mysql帐号远程登陆的时候,出现类似如下错误:ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL解决办法:1. 改表法可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,... 阅读全文
posted @ 2010-11-09 10:48 jackal07 阅读(460) 评论(0) 推荐(0) 编辑
摘要: //检测IP地址合法性函数例1:function IsValidIP(const Value: string): Boolean; //检测IP地址合法性函数varStrs: TStrings;I: Integer;J: Integer;beginResult := False;Strs := TStringList.Create;try ExtractStrings(['.'], [], PCh... 阅读全文
posted @ 2010-08-20 10:20 jackal07 阅读(990) 评论(0) 推荐(0) 编辑
摘要: 先看看内存使用状况[root@node1 ~]# free -mtotal used free shared buffers cachedMem: 8004 6557 1446 0 163 5630-/+ buffers/cache: 763 7240Swap: 1983 0 1983把内存里的数据暂时写到硬盘里[root@node1 ~]# sync修改 /proc/sys/vm/drop_ca... 阅读全文
posted @ 2010-08-20 10:17 jackal07 阅读(138) 评论(0) 推荐(0) 编辑
摘要: linux sed 批量替换多个文件中的字符串sed -i "s/oldstring/newstring/g" `grep oldstring -rl yourdir`例如:替换/home下所有文件中的www.admin99.net为admin99.netsed -i "s/www.admin99.net/admin99.net/g" `grep www.admin99.net -rl /home... 阅读全文
posted @ 2010-08-20 10:16 jackal07 阅读(183) 评论(0) 推荐(0) 编辑