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

用mysql作openldap的后台数据库

etting up OpenLDAP with MySQL backend
用mysql作后台数据库安装openldap
author: TBONIUS
OpenLDAP is an X.500 Lightweight Directory Access Server used for
centralized authentication and directory lookups. This article covers configuring this service to utilize SQL services in order to store its data object. Having these objects stored in a SQL database allow for third party applications access to manage these objects.
openldap是一个基于x.500协议用来集中认证和目录搜索的级目录访问服务器。这篇文章包含的内容是:利用sql服务来配置这个服务
器 ,用来保存对象和数据。允许第三方应用访问、管理这些保存在SQL数据库里的对象。
Ports that are needed:
需要的ports有:
MySQL 4.x server : /usr/ports/databases/mysql41-server
MySQL 4.x client : /usr/ports/databases/mysql41-client
LibIODBC 3.x : /usr/ports/databases/libiodbc
MyODBC 3.x : /usr/ports/databases/myodbc
OpenLDAP 2.x : /usr/ports/databases/openldap21-server WITH_ODBC="YES"
Configuring the MySQL server
配置mysql服务器
OpenLDAP has the option to use many different kinds of databases, in this case we will use MySQL. The first step in setting this up is to create a MySQL database for which OpenLDAP will use.
openldap可选很多不同种类的数据库。在这种情况下,我将使用mysql。要完成这个任务的第一步是建立一个openldap将要使用的
mysql数据库
root@host # mysqladmin create ldap
Next we will create a MySQL accou


相关文档:

mysql 函数

***function(/*常用函数*/)***
----统计函数----
AVG    --求平均值
COUNT   --统计数目
MAX    --求最大值
MIN    --求最小值
SUM    --求和
--AVG
use pangu
select avg(e_wage) as dept_avgWage
from employee
group by dept_id
--M ......

oracle向mysql移植

有一些没有使用数据库中间件的软件可能会碰到在不同的应用场景需要用不同的数据库,这样可能就需要将数据库代码做移植,我这里整理了一些从oracle到mysql的移植过程中的注意事项:
1。sequence生成
可以用类似的东西来做,如下:  
  create   table   myseq   ( &nb ......

如何修改mysql root密码?

1、编辑MySQL配置文件:
 windows环境中:%MySQL_installdir%\my.ini //一般在MySQL安装目录下有my.ini即MySQL的配置文件。
linux环境中:/etc/my.cnf
在[MySQLd]配置段添加如下一行:
skip-grant-tables
保存退出编辑。
2、然后重启MySQL服务
windows环境中:
net stop MySQL
net start MySQL
linux环境中 ......

mysql中GROUP BY结合GROUP_CONCAT的使用 [转]

http://javeye.javaeye.com/blog/558093
我们知道,group by可以将sql查询结果按照group by后面列进行分类显示。比如:
Sql代码
select
 columnA,columnB 
from
 
table
 
group
 
by
 columnA,columnB  
select columnA,columnB from table group by columnA,colum ......

Linux下安装MySQL数据库攻略

1.MySQL简介
   MySQL是一个广泛使用的结构化查询语言(SQL)数据库服务器。和其他SQL服务器一样,MySQL提供了访问和管理SQL数据库的方法,但是,MySQL同时也提供了创建数据库结构以及在这些结构中添加、修改和删除这些结构的工具。
   MySQL数据库相关的软件包主要有以下几种:
   ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号