+2 votes
in Databases by (73.8k 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

+1 vote
by (71.8k points)
selected by
 
Best answer

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


...