`

MySQL 服务器构建

    博客分类:
  • WEB
阅读更多
公司在Windows 2003上构建一个MySQL数据库服务器
步骤:
1、安装MySQL服务器(主要安装过程中字符集选择:UTF-8)
2、创建数据库,创建数据库表。
3、分配权限(http://blog.chinaunix.net/u1/41559/showart_716294.html
分享到:
评论
2 楼 shellfish 2008-08-25  
一种方案,感觉不是很简练,不过也解决了问题。可能用递归会更简洁吧。

public class IndexText {
public static void main(String[] args) {
String varString="C:\\TEST\\\\ADMINISTRATOR\\\\3\\\\C:\\TEST\\\\c:\\test\\e.exe\\\\3\\\\C:\\TEST\\TEMP\\TEMP_IMAGE.BMP\\\\GUEST\\\\3\\\\";
String strNew = varString.replace("\\\\","@");
String[] strSplit=strNew.split("@");
for (int i = 0; i <strSplit.length; i++) {
if((i+1) % 3 == 0){
System.err.println(strSplit[i-2].concat("\\\\").concat(strSplit[i-1]).concat("\\\\").
concat(strSplit[i]).concat("\\\\"));
}
}
}
}
1 楼 ddandyy 2008-08-25  
str.indexof()不就完事了么

相关推荐

Global site tag (gtag.js) - Google Analytics