Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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Êý¾Ýµ¼Èëµ¼³öcsvÎļþÃüÁî

MySqlÊý¾Ý¿âµ¼³öcsvÎļþÃüÁ
mysql> select first_name,last_name,email from account into outfile 'e:\\output1.csv' fields terminated by ','optionally enclosed by ''lines terminated by '\n';
csvÎļþЧ¹û£º



sunny
Grigoryan
lovechoosesun@gmail.com
Jon
Siegal
sun@riliantech.net
Joe
S ......

Apache+php+mysqlÔÚwindowsϵݲװÓëÅäÖÃͼ½â

ÏÈ×¼±¸ºÃÈí¼þ£º
·Ö±ðÔÚApache¹Ù·½¡¢php¹Ù·½¡¢mysql¹Ù·½ÏÂÔØ×îлòÎȶ¨°æ±¾
Ò»¡¢°²×°Apache£¬ÅäÖóɹ¦Ò»¸öÆÕÍ¨ÍøÕ¾·þÎñÆ÷
ÔËÐÐÏÂÔØºÃµÄ“apache_2.0.55-win32-x86-no_ssl.msi”£¬³öÏÖÈçϽçÃæ£º
 
 
³öÏÖApache HTTP Server 2.0.55µÄ°²×°Ïòµ¼½çÃæ£¬µã“Next”¼ÌÐø
 
 
È·È ......

MysqlÖеÄisolation level

MysqlÖеÄÊÂÎñ¿ÉÒÔÔËÐÐÔÚÏÂÃæ4¸öisolation levelÖУ¬Ó°Ïì×Åselect²Ù×÷µÄ½á¹û£º
1. Read Uncommitted
ÊÂÎñ¿ÉÒÔ¶Áµ½ÆäËûÊÂÎñûÓÐÌá½»µÄÄÚÈÝ
2. Read Committed
ÊÂÎñ¿ÉÒÔ¶Áµ½ÆäËûÊÂÎñÒѾ­Ìá½»µÄÄÚÈÝ
3. Repeatable Read
InnoDBµÄĬÈÏlevel£¬¿ÉÒÔÈ·±££¬ÔÚÊÂÎñÖÐÿ´ÎÖ´ÐеĶÁ²Ù×÷·µ»ØµÄ½á¹û¶¼ÓëµÚÒ»´ÎʱµÄÒ»ÖÂ
4. Seriali ......

MySql´´½¨º¯Êý

Ê×ÏÈÐèÒª²é¿´Ò»Ï´´½¨º¯ÊýµÄ¹¦ÄÜÊÇ·ñ¿ªÆô£º
X:\proper\mysql\bin>mysql -h localhost -u root -p
Enter password: **********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 12 to server version: 5.0.22-community-nt-log
Type 'help;' or '\h' for help. Type ' ......

MySQLÃâ°²×°ÅäÖã¨Vista£©

MySql°æ±¾£ºmysql-noinstall-5.1.43-win32
ϵͳ£ºVista
ÔÚC:\myProgram Files\mysql-5.1.43-win32£¨½âѹµÄĿ¼£©Ï½«Ñ¡Ò»¸öÅäÖÃÎļþ£¨my-small.ini£©±à¼­£º
1.ÔÚ[client]ÏÂÌí¼Ó£º
   default-character-set=utf8                ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ