5.1.1 Procedure 3: Installing the Application
Table 5-1 Procedure 3: Installing the Application
| STEP # | This procedure installs the MySQL application on the server.Check off (✓) each step as it is completed. Boxes have been provided for this purpose under each step number. SHOULD THIS PROCEDURE FAIL, CONTACT MY ORACLE SUPPORT AND ASK FOR ASSISTANCE. | |
|---|---|---|
|
1. ☐ |
Linux server: Create the DB administrator user |
Login on query server as root user. |
|
2. ☐ |
Linux server: Create mysql1 directory if not exists |
Note: If mysql directory exists in /usr directory, directly create mysql1 directory, otherwise create mysql directory if not exists, then create mysql1 directory. |
|
3. ☐ |
Linux server: If Installing MySQL using DVD, otherwise skip this step |
Insert the Installation Media into the DVD drive of Linux server. Run the following command:
Go to step 5. |
|
4. ☐ |
Linux server: Mount the ISO if installing MySQL using ISO |
First copy the MySQL iso to /tmp directory of query server. Run the following commands: Example: |
|
5. ☐ |
Linux server: Install MySQL package |
Output similar to the following displays:
|
|
6. ☐ |
Linux server: Copy .sql files to create DB and Tables on Query server |
|
|
7. ☐ |
Linux server: Unmount the ISO if installed MySQL using ISO. Otherwise skip this step |
After completing the installation of MySQL, unmount the iso: |
|
8. ☐ |
Linux server: Eject the media if installed MySQL using DVD. Otherwise skip this step |
After completing the installation of MySQL, eject the DVD and return the media to its case: |
|
9. ☐ |
Linux server: Check ownership and permissions of mysql1 directory |
# If the ownership is anything other than mysql:mysql, change it using the following command:
If the permission is anything other than 755, change it using the following command:
Verify once more that the ownership has been changed.
|
|
10. ☐ |
Linux server : Modify MySQL configuration file |
Remove the content of my.cnf and copy the following in my.cnf. Note:
|
|
11. ☐ |
Linux server : Set permissions of my.cnf file |
Run the following command to set the permissions of my.cnf.
|
|
12. ☐ |
Linux server: Change ownership and permissions of files in mysql1 |
Make sur /usr/mysql/mysql1 directory is empty: |
|
13. ☐ |
Linux server : Initialise database |
Note: WARNING observed: Could not write to config file /usr/my-new.cnf: Permission denied in case of linux machine. This error can be ignored.
|
|
14. ☐ |
Linux server: Stop MySQL if running |
If the password is unknown, use the following command:
Verify that no MySQL process is running using the following command:
|
|
15. ☐ |
Linux server: Reset the password |
If unable to shutdown mysql using above command, use the following command:
|
|
16. ☐ |
Linux server : Installation Complete |
Installation and configuration are now complete. Go to next step in Table 5. |
|
End of Procedure |
||
THIS COMPLETES THE INSTALLATION