I am new in MySQL. I installed Workbench and server. When i try to connect to the database server i receive a message: Your connection attempt failed for user 'root' to the MySQL server. Ann AppArmor policy prevents this sender from sending this message to this recepient; type .
MySQL in Ubuntu Linux – I cannot connect to the server
linuxMySQLUbuntu
Related Question
- MySQL workbench: Cannot Connect to Database Server (ssh)
- Mysql – Cannot connect from elsewhere than a console
- Ubuntu MySQL Workbench – Can’t Connect to MySQL Server on 127.0.0.1 (111)
- Mysql – DBForge can’t connect with MySQL server, server is running
- MySQL Workbench Freezes After Ubuntu 18.04 Upgrade
- Mysql – Remote accessing a MySQL server for non-root user
Best Answer
AppArmor is a Linux kernel security module that allows the system administrator to restrict programs' capabilities with per-program profiles. Have you tried to disable it and see if the connection works? Check here on how to do that: help.ubuntu.com/community/AppArmor#Disable_AppArmor_framework
Another idea you can check with
ss -tnl
if you can seelocalhost:3306
on listening mode, ifss
is not available usenetstat -tnl