MariaDB: Difference between revisions
>Samthecrazyman Created, from Dokuwiki |
>Samthecrazyman m Removed redundant code tags |
||
| Line 18: | Line 18: | ||
# mysqladmin -u root password newpassword | # mysqladmin -u root password newpassword | ||
For example, if you wanted to change your password to computer, type: | For example, if you wanted to change your password to computer, type: | ||
# mysqladmin -u root password computer | # mysqladmin -u root password computer | ||
# Remember, you password is in plain sight on the command prompt. Make sure no one sees you typing and clear the screen afterwards by typing at the prompt: | # Remember, you password is in plain sight on the command prompt. Make sure no one sees you typing and clear the screen afterwards by typing at the prompt: | ||
# clear | # clear | ||
You may also want to clear your scrollback. This can be done in the 'Tools' menu of Konsole. | You may also want to clear your scrollback. This can be done in the 'Tools' menu of Konsole. | ||
# Test your new password by logging into MySQL. Type at the prompt: | # Test your new password by logging into MySQL. Type at the prompt: | ||
# mysql -u root -p | |||
# Type your password when asked. | # Type your password when asked. | ||
# If you've logged in OK, exit by typing: | # If you've logged in OK, exit by typing: | ||