 Utilities, MySQL, Database  2  Tous droits rservs 2003 Jean-Franois PIRONNE  
 MySQL V4.0.15  Software Requirements   C    1. CPQ SSL V1.0-B or V1.1 (available as a free download from HP)     2. JFP ZLIB 1.1-4   New SYSUAF Account  P This installation procedure creates the unprivileged SYSUAF account MYSQL_SERVERN to run the server. After installation is complete, you will want to review theJ security settings on all volumes, directories, and files this account will@ access during operation and adjust them according to your needs.  O By default, the installation procedure installs MySQL in the SYS$COMMON:[MYSQL] N directory. To install it in another directory, dev:[dir], use the /DESTINATIONN parameter of the PRODUCT command. In this case, MySQL will be installed in the' dev:[dir.MYSQL] directory. Installation   H    1. Make the directory which holds the ZIP file your default directory0    2. Extract the PCSI kit from the ZIP archive.   $ UNZIP "-V" MYSQL-V0400-15-1   9    3. Install MySQL to your chosen destination directory.   " $ PRODUCT INSTALL mysql  (default)  	   or ...    . $ PRODUCT INSTALL mysql /DESTINATION=dev:[dir]  M    4. Change the default directory to the VMS-specific directory and run the  K       two DCL procedure files, LOGICALS.COM and SYMBOLS.COM, to define the  /       necessary logicals and symbols for MySQL.   / $ SET DEFAULT SYS$COMMON:[MYSQL.VMS]  (default)      or ...  ! $ SET DEFAULT dev:[dir.MYSQL.VMS]   
   then ...   $ @LOGICALS "/SYSTEM/EXEC"
 $ @SYMBOLS  I    5. (Optional) Configure the MySQL package to suit your environment by  .       editing the file MYSQL_ROOT:[VMS]MY.CNF.H    6. Run the special DCL procedure FIRST_START_MYSQLD.COM to start the &       MySQL server for the first time.   $ @[.MYSQL]FIRST_START_MYSQLD   @ . . .and wait here a few moments for the database to be created.  G    7. Run the special DCL procedure MYSQL_PRIVILEGES.COM to create the         system tables.   $ @[.MYSQL]MYSQL_PRIVILEGES        '    8. Start the MySQL monitor (client).    $ mysql 9 Welcome to the MySQL monitor.  Commands end with ; or \g. ; Your MySQL connection id is 1 to server version: 4.0.15-log   = Type 'help;' or '\h' for help. Type '\c' to clear the buffer.   K    9. Connect to the master system table and display the existing password  ,       for ROOT (should be "" at this point).   mysql> use mysql Database changed- mysql> select Host, User, Password from user;  +-----------+------+----------+  | Host      | User | Password |  +-----------+------+----------+  | localhost | root |          |  +-----------+------+----------+  1 row in set (0.00 sec)   >   10. IMPORTANT! Define a password for the ROOT MySQL account.  M mysql> update user set Password=PASSWORD('myrootpassword') where User='root'; $ Query OK, 0 rows affected (0.00 sec)( Rows matched: 1  Changed: 1  Warnings: 0  - mysql> select Host, User, Password from user; ' +-----------+------+------------------+ ' | Host      | User | Password         | ' +-----------+------+------------------+ ' | localhost | root | 6b6403a743ef6b56 | ' +-----------+------+------------------+  1 row in set (0.00 sec)    mysql> flush privileges;$ Query OK, 0 rows affected (0.16 sec) $   K   11. (Optional): You must also change the HOST field contents if you want  M       to access MySQL from another host using the ROOT account. For example,  6       setting HOST to '%' allows access from anywhere.  G   12. (Optional): Verify your password and/or host changes took effect.    $ MYSQLADMIN -u ROOT -p STATUS Enter password: O                 Uptime: 25  Threads: 1  Questions: 1  Slow queries: 0  Opens: 6 ?  Flush tables: 1  Open tables: 0  Queries per second avg: 0.040  $   )   13. Shut down the MySQL server process.    mysql> exit  Bye     $ MYSQLADMIN -u ROOT -p SHUTDOWN  ? $ MYSQLADMIN -u ROOT -p SHUTDOWN   That's right, quit twice :-)   7   14. Finally, run the DCL procedure MYSQL_STARTUP.COM.   A (You might want to add this line to your SYSTARTUP_VMS.COM file.)     $ @MYSQL_ROOT:[VMS]MYSQL_STARTUP  + You should now have a running MySQL server!     