易截截图软件、单文件、免安装、纯绿色、仅160KB

Spring配置mysql数据库


<! -- beans 元素是Spring配置文件的根元素,所有的Spring 的配置文件都应按如下结构书写一〉
<beans>
<!一配置id 为dataSource 的bean,该bean 是个数据源实例一〉
<bean 工d="dataSource" class="org.apache.corrunons.dbcp.BasicDataSource"
destroy-method="close">
<! 确定数据源的驱动-->
<property name="driverClassName">
<value>com.mysql.jdbc.Driver</value>
</property>
<!-- 确定连接数据库的url -- >
<property name= "url " >
<!-- j2ee 是需要连接的数据库名-->
<value>jdbc:mysql://localhost:3306/j2ee</value>
</property>
<!--确定连接数据库的用户名-->
<property name="username">
<! -- root 是连接数据库的用户名-->
<value>root</value>
</property>
<!一确定连接数据库的密码>
<property name="password">
<!一pass 是连接数据库的密码…〉
<value>pass</value>
</property>
</bean>
</beans>


相关文档:

mysql 备份练习

<?php
$db_name="new";
mysql_connect("localhost","root","123456");
mysql_select_db($db_name);
$tb=mysql_list_tables($db_name);
$sql="";
while($query=mysql_fetch_row($tb)){
 $sql="";$table_sql="";
    $sql.= get_table_fn($query[0]);
    get_table_row($que ......

mysql 阿拉伯数字转换中文函数

CREATE DEFINER=`root`@`%` FUNCTION `sp_cn`(n_LowerMoney  decimal(15,2)) RETURNS varchar(200) CHARSET utf8
begin
Declare v_LowerStr  VARCHAR(200) ;
Declare v_UpperPart VARCHAR(200) ;
Declare v_UpperStr VARCHAR(200) ;
Declare i_I int ;
set v_LowerStr = LTRIM(RTRIM(ROUND(n_LowerMoney,2 ......

MySQL Cluster Multi Computer How To


This section is a “How-To
” that describes the basics
for how to plan, install, configure, and run a MySQL Cluster.
Whereas the examples in
Chapter 3, MySQL Cluster Configuration
provide more in-depth
information on a variety of clustering options and co ......

MySQL Cluster配置step by step

MySQL Cluster配置step by step
来源:http://space.itpub.net/15415488/viewspace-620903
公司有个项目是测试distributed DB,其中一项是针对MySQL Cluster的测试。
于是花了两天时间装机器和配置MySQL Cluster。整个过程还是比较顺利的,当然如果对MySQL常用命令比较熟悉的话会更顺利。
留下step by step配 ......

mysql 中的字符串连接 CONCAT(str1,str2,...)

返回来自于参数连结的字符串。如果任何参数是NULL,返回NULL。可以有超过2个的参数。一个数字参数被变换为等价的字符串形式。
mysql> select CONCAT('My', 'S', 'QL');
-> 'MySQL'
mysql> select CONCAT('My', NULL, 'QL');
-> NULL
mysql> select CONCAT(14.3);
-> '14.3'
如:update test set ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号