Here I am using root -u user to login to database as you can see in the below output. You can enable and use any user with sufficient privileges to login to database. If you are not providing any hostname -h then by default it will take localhost as your hostname. If you don't want to provide password with -p option then you can simply use -p option without any argument, It will prompt you to provide the password. Easy Steps to Install Java on Ubuntu Save my name, email, and website in this browser for the next time I comment.
When new updates are available for MySQL, it will auto-install them, if not you will get a message saying NO packages marked for updates. TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation.
We are thankful for your never ending support. Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.
Save my name, email, and website in this browser for the next time I comment. Notify me of followup comments via e-mail. You can also subscribe without commenting. MySQL is flexible, scalable, reliable and very easy to use. NB: when mysql is installed, mysql user is automatically created as well.
Enter a new password for the MySQL root user. Also, Make sure that the password satisfy the current policy requirements. In other words, your password must contain at least an uppercase, lowercase, number and a character.
Your feedback is welcomed.
0コメント