无法远程控制mysql服务器

时间:2019-04-30 16:49:11

标签: mysql sql phpmyadmin mariadb

我需要远程访问mysql数据库(从连接到同一网络的另一台设备)。在Internet上搜索我已经知道搜索,我必须启用远程控制,但是我不能。我该怎么办?

当我连接时,在询问我密码后,它给了我这个错误:     ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.1.206' (111). 我尝试遵循一些指南,直到您必须在my.cnf中注释bind-address为止,因为“ my.cnf”文件如下所示:

# The MariaDB configuration file
#
# The MariaDB/MySQL tools read configuration files in the following order:
# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
# 2. "/etc/mysql/conf.d/*.cnf" to set global options.
# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
# 4. "~/.my.cnf" to set user-specific options.
#
# If the same option is defined multiple times, the last one will apply.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.

#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]

# Import all .cnf files from configuration directory
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/

所以我无法启用遥控器。有什么建议吗?

0 个答案:

没有答案
相关问题