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>
相关文档:
<?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 ......
PHP新的连接MySQL方法mysqli
1. 开启PHP的API支持
(1)首先修改您的php.ini的配置文件。
查找下面的语句:
;extension=php_mysqli.dll
将其修改为:
extension=php_mysqli.dll
......
package com.google.i_sales.service.data;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.uti ......
To familiarize you with the basics, we will describe the simplest
possible configuration for a functional MySQL Cluster. After this,
you should be able to design your desired setup from the
information provided in the other relevant sections of this
chapter.
......
MySQL Cluster配置step by step
来源:http://space.itpub.net/15415488/viewspace-620903
公司有个项目是测试distributed DB,其中一项是针对MySQL Cluster的测试。
于是花了两天时间装机器和配置MySQL Cluster。整个过程还是比较顺利的,当然如果对MySQL常用命令比较熟悉的话会更顺利。
留下step by step配 ......