How do access to MySQL in Mint 19?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
AndrzejB
Level 1
Level 1
Posts: 40
Joined: Sun Sep 10, 2017 10:42 am

How do access to MySQL in Mint 19?

Post by AndrzejB »

In Mint 18.2 and 18.3 when I install MySQL it was nice text window where I put password.
Now in Mint 19 is similar to this, what was several months ago on Debian: no password ask. Database is MariaDB?
I call sudo mysql_secure_installation, set password but after setting is
$ mysql -u root -p
Enter password:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
although I give password that I set in mysql_secure_installation.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
gtellez

Re: How do access to MySQL in Mint 19?

Post by gtellez »

Hi,
You could try with

Code: Select all

sudo mysql -u root 
or

Code: Select all

sudo mysql -u root - p 
Both without password.
Locked

Return to “Beginner Questions”