| Skip Navigation Links | |
| Exit Print View | |
|
Sun QFS and Sun Storage Archive Manager 5.3 Reference Manual Sun QFS and Sun Storage Archive Manager 5.3 Information Library |
1. User Commands (Man Pages Section 1)
2. Maintenance Commands (Man Pages Section 1M)
3. Library Functions (Man Pages Section 3)
4. Library Functions (Man Pages Section 3X)
5. File Formats (Man Pages Section 4)
NAME
samdb.conf - SAM-QFS mySQL database access file
SYNOPSIS
/etc/opt/SUNWsamfs/samdb.conf
AVAILABILITY
SUNWsamfs
DESCRIPTION
The file /etc/opt/SUNWsamfs/samdb.conf contains access
parameters to the mySQL database for each SAM-QFS family
set.
Each entry is a single line of the form:
family_set_name:host:user:
password:database name:port:
:client_flag:mount_point
where
family_set_name is the SAM-QFS family set name.
The family_set_name field must contain at
least one character and must not contain a
colon (:) or a newline (\n).
host is the hostname of the mySQL database
server. It may be either a hostname or an
IP address. If host is NULL or the string
"localhost", a connection to the local host
is assumed.
user is the MySQL login ID.
password is the MySQL password corresponding with the
user name.
database_name is the MySQL database name.
port is the TCP/IP port being used by the SAM-QFS
database server. If the value of port is
blank or 0, the default of 3306 is used.
Note, the port field is inoperative for
localhost databases.
client_flag is the value of the client flag. See mySQL
function mysql-real-connect() for details.
mount_point is the file system mount point for this
family set.
Blank lines are treated as malformed entries and will cause
consumers of the file to fail.
EXAMPLES
The following is a sample samdb.conf file:
samfs1:db.oracle.com:3ksnn64:secret:samfs1:7009::/sam/sam1
samfs2:localhost:laura:secret:samfs2test:::/sam/sam2
In this example, two family sets are represented. The first
line shows samfs1 which connects to the database on
db.oracle.com via TCP port 7009 with database name samfs1.
The second line shows samfs2 which connects to the database
on localhost with database name samfs2test.