[manticore@apache-centos81 ~]$ mysql -u somethinguser -h localhost something -p
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 16547
Server version: 5.7.44 MySQL Community Server (GPL)
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
mysql> \s
--------------
mysql Ver 14.14 Distrib 5.7.44, for Linux (x86_64) using EditLine wrapper
Connection id: 16547
Current database: something
Current user: somethinguser@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.7.44 MySQL Community Server (GPL)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 6 hours 17 min 40 sec
Threads: 1 Questions: 75052 Slow queries: 0 Opens: 545 Flush tables: 1 Open tables: 538 Queries per second avg: 3.312
--------------
indexing attempt.
indexing table 'something_delta_idx'...
ERROR: table 'something_delta_idx': sql_connect: MySQL source wasn't initialized. Wrong name in dlopen? (DSN=mysql://somethinguser:***@localhost:3306/something).
total 0 docs, 0 bytes
total 0.000 sec, 0 bytes/sec, 0.00 docs/sec
could you check your mysql client that it can connect on the same host and port as you use in your index_source as in your mysql client output it said Connection: Localhost via UNIX socket
but it should be Connection: 127.0.0.1 via TCP/IP
could you connect as mysql -h localhost -P 3306 -u somethinguser -p ?
Thank you for responding. Yes, see the local mysql connectivity validation included within the original post.
ChatGPT says that I should be seeing a mysqlclient library in the ldd command. Do you know if this is accurate? AND/OR does manticore have native mysql support w/o having to load a library?
The odd situation with our setup. is that we are using the el7 mysql clients even though we are on Centos8 Stream. The reason for this situation is that we are using mysql 5.7, not 8.
Both are successful. Additionally, we were using Sphinx previously without any issues connectivity wise.
[user@apache-centos81]$ mysql -u somethinguser -h localhost -P 3306 something -p
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 5.7.44 MySQL Community Server (GPL)
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> \s
--------------
mysql Ver 14.14 Distrib 5.7.44, for Linux (x86_64) using EditLine wrapper
Connection id: 13
Current database: something
Current user: somethinguser@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.7.44 MySQL Community Server (GPL)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 48 min 24 sec
Threads: 1 Questions: 159 Slow queries: 0 Opens: 178 Flush tables: 1 Open tables: 171 Queries per second avg: 0.054
--------------
mysql> exit
Bye
[user@apache-centos81]$ mysql -u somethinguser -h 127.0.0.1 -P 3306 something -p
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.7.44 MySQL Community Server (GPL)
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> \s
--------------
mysql Ver 14.14 Distrib 5.7.44, for Linux (x86_64) using EditLine wrapper
Connection id: 15
Current database: something
Current user: somethinguser@localhost
SSL: Cipher in use is ECDHE-RSA-AES128-GCM-SHA256
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.7.44 MySQL Community Server (GPL)
Protocol version: 10
Connection: 127.0.0.1 via TCP/IP
Server characterset: latin1
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8
TCP port: 3306
Uptime: 49 min 0 sec
Threads: 1 Questions: 182 Slow queries: 0 Opens: 194 Flush tables: 1 Open tables: 187 Queries per second avg: 0.061
--------------
mysql>