我的公司在具有 IP 的服务器中有一个 Perl 应用程序:10.10.3.39
由于实施了新规则,我必须将数据库迁移到具有 IP 的服务器中的 MySQL DB:10.10.1.18
我公司的数据库管理员已创建一个帐户并授予用户名 : 的应用程序访问权限'user'@'10.10.3.39'。所以该帐户只能从具有IP的服务器上使用10.10.3.39
我尝试使用命令在服务器中连接mysql -h 10.10.1.18 -u user -p
[hanief@dev39 project]$ mysql -h 10.10.1.18 -u user -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 19484169
Server version: 10.0.15-MariaDB mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current …Run Code Online (Sandbox Code Playgroud)