你是不是指用Zend Studio连接数据库,
Zend Studio用户手册上有写:Zend Studio allows you to add an SQL server to the development environment
and to configure the server settings.
Zend Studio supports the most popular SQL servers, with support for
additional servers forthcoming. Currently, the following databases are
supported: Oracle, MySQL, SQLite, Microsoft SQL Server, PostgreSQL, IBM
Cloudscape and IBM DB2.
To add an SQL Server to Studio:To add an SQL Server to Studio
1. From Studio's File Manager, click the SQL tab.
2. Right-click to open the right-click menu.
3. Select the Add SQL Server option to open the Add SQL Server dialog.
4. Enter the SQL Server Settings in the fields
The settings include:
a. Server Type - A list of Server Types supported in the current
version of Studio.
b. Server Name (Alias) - The name of the server that will appear
on the SQL Tree (of the File Manager).
c. Host Name/IP - Address of the server.
d. Port - When you choose a Server Type, the default port
appears in this field automatically.
e. Database Name - The name of the database that the server
connects to. This field is names as SID in Oracles connections
and as Database File in SQLite "flat-file" database connections
f. User Name - Your approved User Name for the server
g. Password - The correct Password for the User Name.5. Enter the Connection Preferences using the checkboxes provided.
The preferences include:
a. Save Password - Saves the Password.
b. Connect When Zend Studio Starts - Connects to the server
whenever Zend Studio starts.
c. Auto Reconnect - If the connection to the server is broken,
Auto Reconnect attempts 3 times to reconnect. If it is unable to
reconnect, it then registers a "disconnect" and Auto Reconnect
will stop working.
d. Test the Connection Every - Checks every n seconds to see if
the server is responsive. Use the Seconds field to enter your
preference.
6. Click Test to attempt to connect to the SQL Server using the settings
and connections currently entered in the Add SQL Server dialog box.
7. Click OK to accept the settings and preferences you have entered.
Studio records your settings and automatically tests the connection to
the server.This section describes the procedure for connecting to an SQL Server that you
have not configured to "Connect When Zend Studio Starts". Unconnected
Servers appear in red in the SQL Servers Tree.
To connect to an SQL Server:
    1 .From the Server Tree of the SQL tab, double一click the Server you want
        to connect to. Studio connects to the selected server.
    2 .Alternatively, select the server you wish to connect to and right-click to
        open the server menu.
    3 . Select Connect to Server and click. Studio will attempt to connect to
the selected server.在这里
http://www.zend.com/content/download/1900/12159/file/Zend_Studio_User_Guide.pdf
107页开始