A
A
Abdul Amenov2020-11-08 15:51:32
linux
Abdul Amenov, 2020-11-08 15:51:32

How to connect to MySQL in Ubuntu?

Hello!

I installed Ubuntu on my computer and I want to develop locally with this OS. Installed MySQL Workbench and the mysql-server package.

When I try to connect as root, I get an error that I can't connect.

Can you explain step by step how to do it?

I enter the command sudo mysql -u root into the terminal, it works.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sergey, 2020-11-08
@amenov

searching for An AppArmor policy prevents this sender from sending this message to this recipient
gives the answer
https://itectec.com/ubuntu/ubuntu-cannot-connect-m...

G
Grish Poghosyan, 2020-11-08
@hovsepyann

What is the exact error that you are unable to connect to?
If the error text is "Access deined for user", then you are simply entering the password incorrectly.
This solution helped me once.
YVJN3xwV8f8.jpg?size=672x293&quality=96&proxy=1&sign=4534018b9cd06ef7e289c3972854ca09

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question