??xml version="1.0" encoding="utf-8" standalone="yes"?>日本一区视频在线观看,亚洲人精品午夜,丝袜诱惑亚洲看片http://www.aygfsteel.com/wiflish/category/11015.htmlLoving Life! Loving Coding!zh-cnWed, 27 Feb 2008 04:46:08 GMTWed, 27 Feb 2008 04:46:08 GMT60[转]mysql扚w导入已经格式好的文本数据http://www.aygfsteel.com/wiflish/archive/2008/02/26/182200.html想飞的鱼想飞的鱼Tue, 26 Feb 2008 04:39:00 GMThttp://www.aygfsteel.com/wiflish/archive/2008/02/26/182200.htmlhttp://www.aygfsteel.com/wiflish/comments/182200.htmlhttp://www.aygfsteel.com/wiflish/archive/2008/02/26/182200.html#Feedback0http://www.aygfsteel.com/wiflish/comments/commentRss/182200.htmlhttp://www.aygfsteel.com/wiflish/services/trackbacks/182200.html原文q接Q?br /> http://blog.csdn.net/fenglibing/archive/2007/10/11/1820153.aspx
语法Q?/div>
				LOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name'
		
				    [REPLACE | IGNORE]
		
				    INTO TABLE tbl_name
		
				    [CHARACTER SET charset_name]
		
				    [FIELDS
		
				        [TERMINATED BY 'string']
		
				        [[OPTIONALLY] ENCLOSED BY 'char']
		
				        [ESCAPED BY 'char']
		
				    ]
		
				    [LINES
		
				        [STARTING BY 'string']
		
				        [TERMINATED BY 'string']
		
				    ]
		
				    [IGNORE number LINES]
		
				    [(col_name_or_user_var,...)]
		
				    [SET col_name = expr,...]
		
 
使用如下命oQ?/div>
LOAD DATA LOCAL INFILE 'C:\\stu.txt' INTO TABLE stu;
因ؓq是一条SQL语句Q你同样可以在你?strong>JAVAE序序中用:
st.execute(“LOAD DATA LOCAL INFILE 'C:\\stu.txt' INTO TABLE stu?;
(st表示Statement的一个实例变量,假设数据库连接,st的初使化已经完成)
 
创徏stu表:
create table stu_other(id int auto_increment primary key,stu_name varchar(50),age int);
 
然后创徏一个文本文件“stu.txt”,每行包含一个记录,攑֜C盘的根目录下?strong>默认的字D分隔符?/strong>(tab)Q你可以更改Q下面说明。ƈ且以CREATE TABLE语句中列出的列次序给?/strong>。对于丢q?例如未知的性别Q或仍然zȝ的动物的M日期)Q你可以使用NULL倹{ؓ了在你的文本文g中表C些内容,使用\NQ反斜线Q字母NQ?/div>
 
如stu.txt的内容如下:
100001    FLB100001     100001
100002    FLB100002     100002
100003    FLB100003     100003
100004    FLB100004     100004
100005    FLB100005     100005
100006    FLB100006     100006
100007    FLB100007     100007
100008    FLB100008     100008
?/div>
q里我用的是table分开?/div>
 
要想文本文件“stu.txt”装载到stu表中Q用这个命令:
mysql> LOAD DATA LOCAL INFILE 'c:\\stu.txt' INTO TABLE stu;
q里没有指定字段分隔W,以及行的l止W,默认情况下是q样的:
字段分隔W:
				FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\'
		
				其中?\t'pC是字段分隔Wؓtab键,如果不想更改Q那把FIELDS TERMINATED BY '\t'中的'\t'改在你自q分隔W。将执行命oҎq样Q?/span>
		
mysql> LOAD DATA LOCAL INFILE 'c:\stu.txt' INTO TABLE stu fields terminated by ??
q里我用的是I格?/div>
行终止符Q?/strong>
				LINES TERMINATED BY '\n' STARTING BY ''
		
 
h意如果用Windows中的~辑器(使用\r\n做ؓ行的l束W)创徏文gQ应使用Q?/div>
 
mysql> LOAD DATA LOCAL INFILE 'C:\\stu.txt' INTO TABLE stu
    -> LINES TERMINATED BY '\r\n';
Q在q行OS X的AppleZQ应使用行结束符'\r'。)
 
如果你愿意,你能明确地在LOAD DATA语句中指出列值的分隔W和行尾标记Q但是默认标记是定位W和换行W。这对读入文件“stu.txt”的语句已经_?/div>
 
另外Q还可以使用SELECT ... INTO OUTFILE 数据导入到外部文g中,如下Q?/strong>
select * from stu_t into outfile "c:\\stu_t.txt";
不过Q没有按记录自动分行
q样才能够换行:
select * from stu_t into outfile "c:\\stu_t.txt" lines terminated by '\r\n';
 
所有实例都是经q测试的Q运行成功?/div>
 
参加文章Q?a >http://www.wang48.com/jishubaodianview/?jsd_id=327
 

Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1820153



想飞的鱼 2008-02-26 12:39 发表评论
]]>Mysql5 交叉表查?/title><link>http://www.aygfsteel.com/wiflish/archive/2007/10/09/151550.html</link><dc:creator>想飞的鱼</dc:creator><author>想飞的鱼</author><pubDate>Tue, 09 Oct 2007 14:07:00 GMT</pubDate><guid>http://www.aygfsteel.com/wiflish/archive/2007/10/09/151550.html</guid><wfw:comment>http://www.aygfsteel.com/wiflish/comments/151550.html</wfw:comment><comments>http://www.aygfsteel.com/wiflish/archive/2007/10/09/151550.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/wiflish/comments/commentRss/151550.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/wiflish/services/trackbacks/151550.html</trackback:ping><description><![CDATA[# Host: localhost    Database: test<br /># ------------------------------------------------------<br /># Server version 5.0.45-community-nt-log<br /><br />#<br /># Table structure for table sale<br />#<br /><br />DROP TABLE IF EXISTS `sale`;<br />CREATE TABLE `sale` (<br />  `id` int(10) unsigned NOT NULL auto_increment,<br />  `year` int(11) NOT NULL,<br />  `quarter` int(11) NOT NULL,<br />  `amount` decimal(15,2) NOT NULL,<br />  PRIMARY KEY  (`id`)<br />) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;<br /><br />#<br /># Dumping data for table sale<br />#<br /><br />/*!40101 SET NAMES latin1 */;<br /><br />INSERT INTO `sale` VALUES (1,2004,1,2328);<br />INSERT INTO `sale` VALUES (2,2004,2,3822);<br />INSERT INTO `sale` VALUES (3,2004,3,7071);<br />INSERT INTO `sale` VALUES (4,2004,4,8931);<br />INSERT INTO `sale` VALUES (5,2005,1,2633);<br />INSERT INTO `sale` VALUES (6,2005,2,3910);<br />INSERT INTO `sale` VALUES (7,2005,3,237193);<br />INSERT INTO `sale` VALUES (8,2005,4,567444);<br />INSERT INTO `sale` VALUES (9,2006,1,12313);<br />插入数据后结果ؓQ?br /><table align="center" border="1" height="254" width="869"><tbody class="article"><tr><td valign="top">id<br /></td><td valign="top">year<br /></td><td><font color="#000000">quarter</font></td><td><font color="#000000">amount </font></td></tr><tr><td valign="top">1<br /></td><td valign="top">2004<br /></td><td valign="top">1<br /></td><td valign="top">2328.00<br /></td></tr><tr><td valign="top">2<br /></td><td valign="top">2004<br /></td><td><font color="#000000">2</font></td><td><font color="#000000">3822.00</font></td></tr><tr><td valign="top">3<br /></td><td valign="top">2004<br /></td><td valign="top">3<br /></td><td valign="top">7071.00<br /></td></tr><tr><td valign="top">4<br /></td><td valign="top">2004<br /></td><td valign="top">4<br /></td><td valign="top">8931.00<br /></td></tr><tr><td valign="top">5<br /></td><td valign="top">2005<br /></td><td valign="top">1<br /></td><td valign="top">2633.00<br /></td></tr><tr><td valign="top">6<br /></td><td valign="top">2005<br /></td><td valign="top">2<br /></td><td valign="top">3910.00<br /></td></tr><tr><td valign="top">7<br /></td><td valign="top">2005<br /></td><td valign="top">3<br /></td><td valign="top">237193.00<br /></td></tr><tr><td valign="top">8<br /></td><td valign="top">2005<br /></td><td valign="top">4<br /></td><td valign="top">567444.00<br /></td></tr><tr><td valign="top">9<br /></td><td valign="top">2006<br /></td><td valign="top">1<br /></td><td valign="top">12313.00<br /></td></tr></tbody></table><br /><br />交叉表查询语句:<br />select a.year, 1d, 2d, 3d, 4d from <br />(select distinct year from sale) a left join<br />(select year, amount 1d from sale where quarter=1 group by year) a1d on a.year = a1d.year<br />left join (select year, amount 2d from sale where quarter=2 group by year) a2d on a2d.year=a.year<br />left join (select year, amount 3d from sale where quarter=3 group by year) a3d on a3d.year=a.year<br />left join (select year, amount 4d from sale where quarter=4 group by year) a4d on a4d.year=a.year<br />该语句查询某q的四个季度的amountQ以行显C,昄l果Q?br /><span id="wmqeeuq" class="article"><br /></span><table align="center" border="1" height="104" width="973"><tbody class="article"><tr><td valign="top">year<br /></td><td valign="top">1d<br /></td><td valign="top">2d<br /></td><td><font color="#000000">3d</font></td><td><font color="#000000">4d</font><br /></td></tr><tr><td valign="top">2004<br /></td><td valign="top">2328.00<br /></td><td valign="top">3822.00<br /></td><td>7071.00<br /></td><td><font color="#000000">8931.00<br /></font></td></tr><tr><td valign="top">2005<br /></td><td valign="top">2633.00<br /></td><td valign="top">3910.00<br /></td><td valign="top">237193.00<br /></td><td valign="top">567444.00<br /></td></tr><tr><td valign="top">2006<br /></td><td valign="top">12313.00<br /></td><td valign="top">NULL<br /></td><td valign="top">NULL<br /></td><td valign="top">NULL<br /></td></tr></tbody></table><br /><br />实现定长列的查询Q即quarter的最大取gؓ4Q定长ؓ4列).<br /><img src ="http://www.aygfsteel.com/wiflish/aggbug/151550.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/wiflish/" target="_blank">想飞的鱼</a> 2007-10-09 22:07 <a href="http://www.aygfsteel.com/wiflish/archive/2007/10/09/151550.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>mysql中varchar字段长度过限制长度自动截取的问?/title><link>http://www.aygfsteel.com/wiflish/archive/2007/08/29/141045.html</link><dc:creator>想飞的鱼</dc:creator><author>想飞的鱼</author><pubDate>Wed, 29 Aug 2007 10:30:00 GMT</pubDate><guid>http://www.aygfsteel.com/wiflish/archive/2007/08/29/141045.html</guid><wfw:comment>http://www.aygfsteel.com/wiflish/comments/141045.html</wfw:comment><comments>http://www.aygfsteel.com/wiflish/archive/2007/08/29/141045.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/wiflish/comments/commentRss/141045.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/wiflish/services/trackbacks/141045.html</trackback:ping><description><![CDATA[mysql手册的说明:<br />    如果分配l?span style="font-size: 10pt; font-family: 黑体;">CHAR</span>?span style="font-size: 10pt; font-family: 黑体;">VARCHAR</span>列的Dq列的最大长度,则对D行裁剪以使其适合。如果被裁掉的字W不是空|则会产生一条警告。如果裁剪非I格字符Q则会造成错误<span>(</span>而不是警?span>)</span>q过使用严格<span>SQL</span>模式用值的插入?br />MySQL服务器模式说明:<br /><p><span>MySQL</span>服务器可以以不同?span>SQL</span>模式来操作,q且可以Z同客L应用不同模式。这h个应用程序可以根据自q需求来定制服务器的操作模式?/p><p>模式定义<span>MySQL</span>应支持哪?span>SQL</span>语法Q以及应执行哪种数据验证查。这样可以更Ҏ地在不同的环境中使用<span>MySQL</span>Qƈl合其它数据库服务器使用<span>MySQL</span>?/p><p>你可以用<span style="font-family: 黑体;">--sql-mode="<i>modes</i>"</span>选项启动<strong><span style="font-family: 宋体;">mysqld</span><span style="font-family: 宋体; font-weight: normal;">?/span></strong>讄默认<span>SQL</span>模式。如果你惌重设Q该D可以为空<span>(</span><span style="font-size: 10pt; font-family: 黑体;">--sql-mode =""</span><span>)</span>?/p><p>你还可以在启动后?span style="font-family: 黑体;">SET [SESSION|GLOBAL] sql_mode='<i>modes</i>'</span>语句讄<span style="font-size: 10pt; font-family: 黑体;">sql_mode</span>变量来更?span>SQL</span>模式。设|? <span style="font-size: 10pt; font-family: 黑体;">GLOBAL</span>变量旉要拥?span style="font-size: 10pt; font-family: 黑体;">SUPER</span>权限Qƈ且会影响从那时vq接的所有客L的操作。设|?span style="font-family: 黑体;">SESSION</span>变量只媄响当前的客户端。Q何客L可以随时更改自己的会? <span style="font-size: 10pt; font-family: 黑体;">sql_mode</span>倹{?/p><p><span style="font-family: 黑体;"><i><span>Modes</span></i></span><span>is</span>是用逗号<span>(</span>?span style="font-size: 10pt; font-family: 黑体;">Q?/span>?span>)</span>间隔开的一pd不同的模式。你可以?span style="font-size: 10pt; font-family: 黑体;">SELECT @@sql_mode</span>语句查询当前的模式。默认值是I?span>(</span>没有讄M模式<span>)</span>?br /></p><p>主要重要<span style="font-size: 10pt; font-family: 黑体;">sql_mode</span>gؓQ?/p><p><span>·<span>         </span></span><span style="font-size: 10pt; font-family: 黑体;">ANSI</span></p><p style="margin-left: 36pt;">更改语法和行为,使其更符合标?span>SQL</span>?/p><p><span>·<span>         </span></span><span style="font-size: 10pt; font-family: 黑体;">STRICT_TRANS_TABLES</span></p><p style="margin-left: 36pt;"> 如果不能给定的值插入到事务表中Q则攑ּ该语句。对于非事务表,如果值出现在单行语句或多行语句的W?span>1</span>行,则放弃该语句。本节后面给Z更详l的描述?/p><p><span>·<span>         </span></span><span style="font-size: 10pt; font-family: 黑体;">TRADITIONAL</span></p><p style="margin-left: 36pt;"><span>Make MySQL</span>的行?span class="quote">传统</span>?span>SQL</span>数据库系l。该模式的简单描q是当在列中插入不正的值时“给?span class="quote">错误而不是警?/span>”?strong><span style="font-family: 宋体;">?/span></strong>释:一旦发现错误立x?span style="font-size: 10pt; font-family: 黑体;">INSERT</span><span>/</span><span style="font-size: 10pt; font-family: 黑体;">UPDATE</span>。如果你使用非事务存储引擎,q种方式不是你想要的Q因为出现错误前q行的数据更改不会“滚动”,l果是更新“只q行了一部分”?/p><p>本手册指?span class="quote">严格模式</span>”,表示臛_<span style="font-size: 10pt; font-family: 黑体;">STRICT _TRANS_TABLES</span>?span style="font-size: 10pt; font-family: 黑体;">STRICT _ALL_TABLES</span>被启用的模式?/p><img src ="http://www.aygfsteel.com/wiflish/aggbug/141045.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/wiflish/" target="_blank">想飞的鱼</a> 2007-08-29 18:30 <a href="http://www.aygfsteel.com/wiflish/archive/2007/08/29/141045.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>windows下安装解压版mysqlhttp://www.aygfsteel.com/wiflish/archive/2006/12/26/90123.html想飞的鱼想飞的鱼Tue, 26 Dec 2006 07:39:00 GMThttp://www.aygfsteel.com/wiflish/archive/2006/12/26/90123.htmlhttp://www.aygfsteel.com/wiflish/comments/90123.htmlhttp://www.aygfsteel.com/wiflish/archive/2006/12/26/90123.html#Feedback2http://www.aygfsteel.com/wiflish/comments/commentRss/90123.htmlhttp://www.aygfsteel.com/wiflish/services/trackbacks/90123.html       http://dev.mysql.com/downloads/
2、将mysql解压到待安装目录Q?MYSQL_HOME%表示?br />3、编辑my.ini文g(该文件放到C:\windows目录?Q内容如下:
     
[mysqld]
#default-character-set=gbk
basedir=%MYSQL_HOME%
datadir=%MYSQL_HOME%/data

[WinMySQLadmin]
Server=%MYSQL_HOME%/bin/mysqld-nt.exe
user=root
password=

4、打开windows的cmd命oH口Q进入到%MYSQL_HOME%\bin?br />5、执行命令: mysqld-nt.exe --install  Q安装到windows的服务)
6、执行命令: net start mysql
一般情况下Q这h作后Qmysql安装完成?br />
注:
1、如果以前系l存在mysql。则q入以前pȝ存在的mysql目录,执行 mysqld-nt.exe --remove(先从pȝ中移
      除mysql服务)在开始执行上面第4步?br />2、如果出?067错误Q一般是my.ini文g配置问题。更改my.ini文g使之W合本地情况.




想飞的鱼 2006-12-26 15:39 发表评论
]]>
[转]ysql4.1以上版本q接时出现Client does not support authentication protocol问题解决办法http://www.aygfsteel.com/wiflish/archive/2006/12/23/89664.html想飞的鱼想飞的鱼Sat, 23 Dec 2006 07:50:00 GMThttp://www.aygfsteel.com/wiflish/archive/2006/12/23/89664.htmlhttp://www.aygfsteel.com/wiflish/comments/89664.htmlhttp://www.aygfsteel.com/wiflish/archive/2006/12/23/89664.html#Feedback0http://www.aygfsteel.com/wiflish/comments/commentRss/89664.htmlhttp://www.aygfsteel.com/wiflish/services/trackbacks/89664.html
转:http://www.phpv.net/article.php/288

mysql4.1以上版本q接时出现Client does not support authentication protocol问题解决办法

shell> mysql
Client does not support authentication protocol requested
by server; consider upgrading MySQL client

官方的说法是

MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. .....


 

如果你升Umysql?.1以上版本后遇C上问?请先定你的mysql client ?.1或者更高版?(WINDOWS下有问题你就直接跛_下面看解x法了,因ؓMYSQL 在WINDOWS是client和server一赯上了?

请用以下两U方法之一

其一:

mysql> SET PASSWORD FOR
    -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

其二:

mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
    -> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;
上面U色的部分请按自己实际情况修?...
q样做后,q接׃正常了@!


想飞的鱼 2006-12-23 15:50 发表评论
]]>
Linuxq_Q忘记mysql的root密码解决办法http://www.aygfsteel.com/wiflish/archive/2006/12/23/89655.html想飞的鱼想飞的鱼Sat, 23 Dec 2006 05:43:00 GMThttp://www.aygfsteel.com/wiflish/archive/2006/12/23/89655.htmlhttp://www.aygfsteel.com/wiflish/comments/89655.htmlhttp://www.aygfsteel.com/wiflish/archive/2006/12/23/89655.html#Feedback0http://www.aygfsteel.com/wiflish/comments/commentRss/89655.htmlhttp://www.aygfsteel.com/wiflish/services/trackbacks/89655.htmlhttp://www.domsn.net/index.php?play=reply&id=490

 当忘记MySQL的root密码的时候,可以q行如下的步骤重新设|MySQL的root密码Q?

■■Linux的^台■?

1Q首先确认服务器Z安全的状态,也就是没有h能够L地连接MySQL数据库?
因ؓ在重新设|MySQL的root密码的期_MySQL数据库完全出于没有密码保护的
状态下Q其他的用户也可以Q意地d和修改MySQL的信息。可以采用将MySQL?
外的端口闭Qƈ且停止Apache以及所有的用户q程的方法实现服务器的准安全
状态。最安全的状态是到服务器的Console上面操作Qƈ且拔掉网Uѝ?

2Q修改MySQL的登录设|:
# vi /etc/my.cnf
在[mysqld]的段中加上一句:skip-grant-tables
例如Q?
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-grant-tables
保存q且退出vi?

3Q重新启动mysqld
# /etc/init.d/mysqld restart
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]

4Q登录ƈ修改MySQL的root密码
# /usr/bin/mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 3.23.56

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> USE mysql ;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> UPDATE user SET Password = password ( 'new-password' ) WHERE User = 'root' ;
Query OK, 0 rows affected (0.00 sec)
Rows matched: 2 Changed: 0 Warnings: 0

mysql> flush privileges ;
Query OK, 0 rows affected (0.01 sec)

mysql> quit
Bye

5Q将MySQL的登录设|修改回?
# vi /etc/my.cnf
刚才在[mysqld]的段中加上的skip-grant-tables删除
保存q且退出vi?

6Q重新启动mysqld
# /etc/init.d/mysqld restart
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]

7Q恢复服务器的正常工作状?
步骤一中的操作逆向操作。恢复服务器的工作状态?


想飞的鱼 2006-12-23 13:43 发表评论
]]>
[原创]安装phpMyAdminhttp://www.aygfsteel.com/wiflish/archive/2006/05/29/48778.html想飞的鱼想飞的鱼Mon, 29 May 2006 08:30:00 GMThttp://www.aygfsteel.com/wiflish/archive/2006/05/29/48778.htmlhttp://www.aygfsteel.com/wiflish/comments/48778.htmlhttp://www.aygfsteel.com/wiflish/archive/2006/05/29/48778.html#Feedback0http://www.aygfsteel.com/wiflish/comments/commentRss/48778.htmlhttp://www.aygfsteel.com/wiflish/services/trackbacks/48778.html配置ҎQ?br />1、复?PHP_HOME%\php4ts.dll文g?Apache_HOME%\bin\php4ts.dllQ?br />2、修?Apache_HOME%\conf\httpd.conf查找Q?br />
#
#
 Commonly used filename extensions to character sets. You probably
#
 want to avoid clashes with the language extensions, unless you
#
 are good at carefully testing your setup after each change.
#
 See http://www.iana.org/assignments/character-sets for the
#
 official list of charset names and their respective RFCs.
#
在后面加上:AddDefaultCharset GB2312

卻I
#
#
 Commonly used filename extensions to character sets. You probably
#
 want to avoid clashes with the language extensions, unless you
#
 are good at carefully testing your setup after each change.
#
 See http://www.iana.org/assignments/character-sets for the
#
 official list of charset names and their respective RFCs.
#
AddDefaultCharset GB2312

3、在文g末尾加上Q?br />
LoadModule php4_module "%PHP_HOME%/sapi/php4apache2.dll"
AddType application/x-httpd-php .php

通过上述配置Q将php与apche2整合在一起了Q即apache2能解?.php文g了?br />试配置Q在%Apache_HOME%\htdocs\目录下新建test.php文gQ内容如下:
<? echo phpinfo(); ?>
启动apache2Q输入:http://localhost/test.phpQ就能看到php的相关配|信息的面?br />4、将下蝲的phpMyAdmin-2.5.6-rc2压羃包解压到%Apache_HOME%\htdocs\下?br />5、打开phpMyAdmin-2.5.6-rc2目录下的config.inc.php文gQ?br />查找Q?br />
$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
$cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
上述代码Q设|连接MySQL的用户名和密码?br />查找Q?span style="color: rgb(0, 0, 0);">
// Default language to use, if not browser-defined or user-defined
$cfg['DefaultLang'= 'en-iso-8859-1';
更改为:
// Default language to use, if not browser-defined or user-defined
$cfg['DefaultLang'= 'zh';
查找Q?br />
$cfg['DefaultCharset'= 'iso-8859-1';
更改为:
$cfg['DefaultCharset'= 'gbk';
保存config.inc.php文g?br />
6、将%PHP_HOME%目录下的php.ini-dist文g复制到系l目录(C:\WINDOWSQ,q将php.ini-dist修改为php.iniQ打开php.ini文gQ查找extension_dirQ将该值更改ؓ%PHP_HOME%\extensions(PHP5为:%PHP_HOME%\ext)Q查?extension=php_mysql.dllQ将前面?;"LQ再?PHP_HOME%根目录下的libmysql.dll和extensionsQPHP5为:extQ目录下的php_mysql.dll复制到C:\WINDOWS\system32下?br />
7、启动apache2Q输入:http://localhost/
phpMyAdmin-2.5.6-rc2Q就能对mysql数据库进行相x作了?br />

想飞的鱼 2006-05-29 16:30 发表评论
]]>
安装和卸载Mysql的windowspȝ服务http://www.aygfsteel.com/wiflish/archive/2006/05/26/48337.html想飞的鱼想飞的鱼Fri, 26 May 2006 07:20:00 GMThttp://www.aygfsteel.com/wiflish/archive/2006/05/26/48337.htmlhttp://www.aygfsteel.com/wiflish/comments/48337.htmlhttp://www.aygfsteel.com/wiflish/archive/2006/05/26/48337.html#Feedback2http://www.aygfsteel.com/wiflish/comments/commentRss/48337.htmlhttp://www.aygfsteel.com/wiflish/services/trackbacks/48337.html安装mysql的windowspȝ服务Q?${mysql.home}\bin\mysqld-nt --install;
卸蝲mysql的windowspȝ服务Q?${mysql.home}\bin\mysqld-nt --remove

l色心情大大介绍的更好的ҎQ?br />
在命令行使用sc命oQ?br />DESCRIPTION:
SC is a command line program used for communicating with the
NT Service Controller and services.
USAGE:
sc <server> [command] [service name] <option1> <option2>...

The option <server> has the form "\\ServerName"
Further help on commands can be obtained by typing: "sc [command]"
Commands:
query-----------Queries the status for a service, or
enumerates the status for types of services.
queryex---------Queries the extended status for a service, or
enumerates the status for types of services.
start-----------Starts a service.
pause-----------Sends a PAUSE control request to a service.
interrogate-----Sends an INTERROGATE control request to a service.
continue--------Sends a CONTINUE control request to a service.
stop------------Sends a STOP request to a service.
config----------Changes the configuration of a service (persistant).
description-----Changes the description of a service.
failure---------Changes the actions taken by a service upon failure.
qc--------------Queries the configuration information for a service.
qdescription----Queries the description for a service.
qfailure--------Queries the actions taken by a service upon failure.
delete----------Deletes a service (from the registry).
create----------Creates a service. (adds it to the registry).
control---------Sends a control to a service.
sdshow----------Displays a service's security descriptor.
sdset-----------Sets a service's security descriptor.
GetDisplayName--Gets the DisplayName for a service.
GetKeyName------Gets the ServiceKeyName for a service.
EnumDepend------Enumerates Service Dependencies.

The following commands don't require a service name:
sc <server> <command> <option>
boot------------(ok | bad) Indicates whether the last boot should
be saved as the last-known-good boot configuration
Lock------------Locks the Service Database
QueryLock-------Queries the LockStatus for the SCManager Database
EXAMPLE:
sc start MyService


想飞的鱼 2006-05-26 15:20 发表评论
]]>
վ֩ģ壺 | | | ɳ| ګ| | | ɽ| | | ³| | ɽ| ˮ| | ˼| | ߮| ̨| Ƿ| »| ˫Ѽɽ| | | | | Ī| ף| ľ| կ| | ǭ| Դ| Դ| | | Ͽ| ³| ̫ԭ| | ˱|