TCMS и sphinx 2
Re: TCMS и sphinx 2
$ mysql -P3312 -hlocalhost
ERROR 1045 (28000): Access denied for user 'user'@'localhost' (using password: NO)
как именно вы конектитесь в шеле к сфинксу ?
ERROR 1045 (28000): Access denied for user 'user'@'localhost' (using password: NO)
как именно вы конектитесь в шеле к сфинксу ?
Don't forget to run script update
Re: TCMS и sphinx 2
Админы пишут:
mysql -P3312 -h127.0.0.1
"-hlocalhost" это коннект к mysql сокету, даже если явно указан порт в данном случае.
"On Unix, MySQL programs treat the host name localhost specially, in a way that is likely different from what you expect compared to other network-based programs. For connections to localhost, MySQL programs attempt to connect to the local server by using a Unix socket file. This occurs even if a --port or -P option is given to specify a port number. To ensure that the client makes a TCP/IP connection to the local server, use --host or -h to specify a host name value of 127.0.0.1, or the IP address or name of the local server. You can also specify the connection protocol explicitly, even for localhost, by using the --protocol=TCP option."
В общем стало все ясно, я в конфиг tcms добавил "$config["sphinx_host"] = '127.0.0.1';"
Поиск заработал.
--
Спасибо
mysql -P3312 -h127.0.0.1
"-hlocalhost" это коннект к mysql сокету, даже если явно указан порт в данном случае.
"On Unix, MySQL programs treat the host name localhost specially, in a way that is likely different from what you expect compared to other network-based programs. For connections to localhost, MySQL programs attempt to connect to the local server by using a Unix socket file. This occurs even if a --port or -P option is given to specify a port number. To ensure that the client makes a TCP/IP connection to the local server, use --host or -h to specify a host name value of 127.0.0.1, or the IP address or name of the local server. You can also specify the connection protocol explicitly, even for localhost, by using the --protocol=TCP option."
В общем стало все ясно, я в конфиг tcms добавил "$config["sphinx_host"] = '127.0.0.1';"
Поиск заработал.
--
Спасибо
Re: TCMS и sphinx 2
у меня таже сама проблема
прописывал и в конфиги и админке
на самом сидже выдает
Mysql error:: 1184 (Aborted connection 190878 to db: 'unconnected' user: '' host: 'localhost' (init_connect command failed)) (db_sphinx) in query SELECT id FROM xxxx_com_index WHERE match ('sex') LIMIT 0, 120. (www.xxxx.com
в шеле
[root ~]# mysql -P9312
ERROR 1045 (28000): Access denied for user 'root'@'localho
если добавить 127.0.0.1
[root ~]# mysql -P9312 -h127.0.0.1
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 2.2.10-id64-release (2c212e0)
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
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>
и тогда все ищется внутри
но на сайте не работает, пробовал и localhost и 127.0.0.1
в конфиге сфинка
listen = 9312:mysql41
пробовал и
listen = 127.0.0.1:9312:mysql41
и
listen = localhost:9312:mysql41
прописывал и в конфиги и админке
на самом сидже выдает
Mysql error:: 1184 (Aborted connection 190878 to db: 'unconnected' user: '' host: 'localhost' (init_connect command failed)) (db_sphinx) in query SELECT id FROM xxxx_com_index WHERE match ('sex') LIMIT 0, 120. (www.xxxx.com
в шеле
[root ~]# mysql -P9312
ERROR 1045 (28000): Access denied for user 'root'@'localho
если добавить 127.0.0.1
[root ~]# mysql -P9312 -h127.0.0.1
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 2.2.10-id64-release (2c212e0)
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
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>
и тогда все ищется внутри
но на сайте не работает, пробовал и localhost и 127.0.0.1
в конфиге сфинка
listen = 9312:mysql41
пробовал и
listen = 127.0.0.1:9312:mysql41
и
listen = localhost:9312:mysql41
Re: TCMS и sphinx 2
конечноadmin wrote:После смены настроект без кеша смотрели ?
Re: TCMS и sphinx 2
Сейчас ребята из сапорта детально смотрятadmin wrote:C ходу идей нет, скиньте плз админку и шел.
но могу сказать сразу - 51-я версия работает без вопросов, ищет, выводит







