CentOS環境下のMySQL(XAMPP)にODBC接続できない

実現したいこと

DBサーバーとして、CentOSのサーバー機(以下DBSV)を立ち上げ、Linux向けXAMPP8.2.4をインストールしました。
DBのフロントエンドとしてAccessからのテーブルリンクを活用して諸々運用していきたいと考えています。

前提

社内ネットワークのWindowsPCからODBC接続を用いてDBSVにアクセスしたいのですが、ODBCによるMySQLへの接続がエラーになります。
なお、DBSV上でのMySQL接続および、phpMyAdminアクセスはローカルおよび社内PCでアクセス・操作ができています。

発生している問題・エラーメッセージ

Connection failed with the following error: [MySQL][ODBC 8.0(a) Driver]Can't connect to MySQL server on '<IPアドレス>:3306' (10061)[HY000]

試したこと

別のWindowsサーバー環境にもXAMPPを導入していますが、このサーバーからコマンドを実行すると、同様に下記のようなエラー表示されます。

d:\xampp\mysql\bin>mysql -h <DBSV IPアドレス> -u root -p -P 3306 Enter password: ************** ERROR 2003 (HY000): Can't connect to MySQL server on '<DBSV IPアドレス>' (10061 "Unknown error")

補足情報(FW/ツールのバージョンなど)

 CentOS内で行っているファイアウォールの設定状況は下記のとおりです。

[root@DBSV ~]# firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: enp2s0 sources: services: ssh dhcpv6-client http https mysql ports: 3389/tcp 3306/tcp protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules:

個人的に気になっている点として、DBサーバー内でmysqlにアクセス後、variablesのportが0になっている点があります。

[root@DBサーバー ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 13 Server version: 10.4.28-MariaDB Source distribution Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> show variables like 'port'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | port | 0 | +---------------+-------+ 1 row in set (0.001 sec)

同じく別サーバーで運用中の、WindowsのXAMPP環境で同じ情報を確認すると、こちらはportが3306となっています。

/opt/lampp/etc/my.cnf内でのportの指定は3306となっています。

~省略~ # The following options will be passed to all MySQL clients [client] #password = your_password port =3306 socket =/opt/lampp/var/mysql/mysql.sock # Here follows entries for some specific programs # The MySQL server default-character-set=utf8mb4 [mysqld] user=mysql port=3306 socket=/opt/lampp/var/mysql/mysql.sock ~省略~

今回の事象に関係しているかどうかも分かっていませんが、情報として掲載いたします。
他に解決に向けて必要な情報があれば可能な限り対応したいと思いますので、ご指示をいただけますと幸いです。
よろしくお願い致します。

コメントを投稿

0 コメント