13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

606 Arguments 4 Chapter 21Here is the LIBNAME statement syntax <strong>for</strong> accessing MySQL.LIBNAME libref mysql ;Argumentslibrefspecifies any <strong>SAS</strong> name that serves as an alias to associate <strong>SAS</strong> with a database,schema, server, or group of tables.mysqlspecifies the <strong>SAS</strong>/<strong>ACCESS</strong> engine name <strong>for</strong> MySQL interface.connection-optionsprovide connection in<strong>for</strong>mation and control how <strong>SAS</strong> manages the timing andconcurrence of the connection to the DBMS. Here is how these options are defined.USER=user namespecifies the MySQL user login ID. If this argument is not specified, thecurrent user is assumed. If the user name contains spaces ornonalphanumeric characters, you must enclose the user name in quotationmarks.PASSWORD=passwordspecifies the MySQL password that is associated with the MySQL login ID. Ifthe password contains spaces or nonalphanumeric characters, you mustenclose the password in quotation marks.DATABASE=databasespecifies the MySQL database to which you want to connect. If the databasename contains spaces or nonalphanumeric characters, you must enclose thedatabase name in quotation marks.SERVER=serverspecifies the server name or IP address of the MySQL server. If the servername contains spaces or nonalphanumeric characters, you must enclose theserver name in quotation marks.PORT=portspecifies the port used to connect to the specified MySQL server. If you do notspecify a value, 3306 is used.LIBNAME-optionsdefine how <strong>SAS</strong> processes DBMS objects. Some LIBNAME options can enhanceper<strong>for</strong>mance, while others determine locking or naming behavior. The followingtable describes the LIBNAME options <strong>for</strong> <strong>SAS</strong>/<strong>ACCESS</strong> Interface to MySQL, withthe applicable default values. For more detail about these options, see “LIBNAMEOptions <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>” on page 92.Table 21.1<strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME Options <strong>for</strong> MySQLOption<strong>ACCESS</strong>=AUTHDOMAIN=AUTOCOMMIT=CONNECTION=Default ValuenonenoneYESSHAREDREAD

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!