I was trying to run some mysql
command, but then when I run it, this happens
mysql: unknown variable 'bind-address=[ip]'
Stuff looks different in my.cnf
:
[mysqld]
bind-address = [ip]
port = 3306
50-server.cnf
:
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
bind-address = [ip]
mysql.cnf
:
[mysql]
bind-address = [ip]
port = 3306
ps -aux | grep mysql
:
mysql 4171 0.7 3.1 730344 96612 ? Ssl 15:54 0:03 /usr/sbin/mysqld
There is no
bind-address
option formysql
in MariaDB. This option is related to the daemon partmysqld
.So remove the
bind-address
from your[mysql]
section in themysql.cnf
file.I had this problem, I wanted to work in the client mariadb or mysql of the terminal and in the client dbeaver, so I had to add this lines in this file /etc/mysql/my.cnf
It is important to add the label [mysqld], if you don´t add only works in dbeaver and it doesn´t work in the client mariadb. Adding this label works in both.
Remember reset the service to apply the changes.
Use the command of the terminal mysql or mariadb to use these clients