Answer the question
In order to leave comments, you need to log in
How to give remote access to mysql?
There is a remote server on centos7, it has mariadb
content /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
bind_address = 0.0.0.0
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd
[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
mysql -u -root -p -h <ip адрес>
- it won't let me. Answer the question
In order to leave comments, you need to log in
When the privileges were set to % - the password was not changed by chance? ;)
A thread of epic... mmm... myopia. For 2 days, no one has advised to issue grants to the root user to the address from which you are connecting.
GRANT ALL PRIVILEGES ON *.* TO 'root'@'remote_ip_address'
IDENTIFIED BY PASSWORD 'some_characters'
WITH GRANT OPTION\G
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question