+2 votes
in Databases by (28.1k points)

I installed MySQL on my Ubuntu 18 machine, but when I type mysql on the Ubunutu terminal, I get the following error message:

ERROR 1045 (28000): Access denied for user

What is the command to go to MySQL terminal on Ubuntu?

1 Answer

0 votes
by (20.3k points)

You need to type the following command on the Ubuntu terminal to access MySQL:

$ mysql -u root -p

It will prompt for the password. Type your root password. If you created another user while installing MySQL, you can use that user instead of root.

Related questions