How does one add users to a password file

One can select from SYS.V_$PWFILE_USERS view to see which users are listed in the password file.
New users can be added to the password file by granting them SYSDBA or SYSOPER privileges or by using the orapwd utility.

SQL>GRANT SYSDBA TO Scott;

How to fix: ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)

Open your terminal and type mysql -u root -p Enter your password. Hopefully your MySQL is logged in now.