File: connectionAdd.dtml

package info (click to toggle)
zope-mysqlda 2.0.8-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 184 kB
  • ctags: 103
  • sloc: python: 428; sh: 55; makefile: 47
file content (74 lines) | stat: -rw-r--r-- 2,451 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<html>
  <head><title>Add Z MySQL Database Connection</title></head>
  <body bgcolor="#FFFFFF" link="#000099" vlink="#555555" alink="#77003B">
  
    <h2>Add Z MySQL Database Connection</h2>
    
    <form action="manage_addZMySQLConnection" method="POST">
      <table cellspacing="2">
	<tr>
	  <th align="LEFT" valign="TOP">Id</th>
	  <td align="LEFT" valign="TOP">
            <input type="TEXT" name="id" size="40"
                value="MySQL_database_connection">
          </td>
	</tr>
	<tr>
	  <th align="LEFT" valign="TOP"><em>Title</em></th>
	  <td align="LEFT" valign="TOP">
            <input type="TEXT" name="title" size="40"
                value="Z MySQL Database Connection">
          </td>
	</tr>
	<tr>
	  <th align="LEFT" valign="TOP">
             Enter a Database Connection String
	     <a href="#1"><sup>1</sup></a></th>
	  <td align="LEFT" valign="TOP">
            <input type="TEXT" name="connection_string" size="40">
          </td>
	</tr>
	<tr>
	  <th align="LEFT" valign="TOP">Connect immediately</th>
	  <td align="LEFT" valign="TOP">
            <input name="check" type="CHECKBOX" value="YES" CHECKED>
          </td>
	</tr>
	<tr>
	  <td></td>
	  <td><br><input type="SUBMIT" value="Add"></td>
	</tr>
      </table>
    </form>



<dt><a hname="1"><sup>1</sup></a> Connection Strings</dt>
<dd>
<p>
    The connection string used for Z MySQL Database Connection
    is of the form:
<pre>
       [+/-]database[@host[:port]] [user [password [unix_socket]]]
</pre>
    or typically:
<pre>
       database user password
</pre>
    to use a MySQL server on localhost via the standard UNIX socket.
    Only specify host if the server is on a remote system. You can
    use a non-standard port, if necessary. If the UNIX socket is in
    a non-standard location, you can specify the full path to it
    after the password. A '-' in front of the database tells ZMySQLDA
    to not use Zope's Transaction Manager, even if the server supports
    transactions. A '+' in front of the database tells ZMySQLDA that
    it must use transactions; an exception will be raised if they are
    not supported by the server. If neither '-' or '+' are present,
    then transactions will be enabled if the server supports them.
    If you are using non-transaction safe tables (TSTs) on a server that
    supports TSTs, use '-'. If you require transactions, use '+'. If
    you aren't sure, don't use either.
</dd></dl>

  </body>
</html>