I have make a database in phpmyadmin. I have prices with dollar symbols and I also other symbols.
When I open mysql through Manticore I see the number 0 instead of the prices. This is also the case with the other symbols. I insert ‘collation_server = utf8_ci’ in my searchd and ‘sql_query_pre = SET CHARACTER_SET_RESULTS=utf8’ and ‘sql_query_pre = SET NAMES utf8’ in my index source.
In mysql when isued ‘SHOW COLLATION;’ I get the following:
mysql> SHOW COLLATION;
+-----------------+---------+------+---------+----------+---------+
| Collation | Charset | Id | Default | Compiled | Sortlen |
+-----------------+---------+------+---------+----------+---------+
| utf8_general_ci | utf8 | 33 | Yes | Yes | 1 |
+-----------------+---------+------+---------+----------+---------+
1 row in set (0,00 sec)
mysqldump of your table, or, even better, a config like this:
source min {
type = mysql
sql_host = localhost
sql_user = test
sql_pass =
sql_db = test
sql_query = select 1, 'dog' f, 1 a
sql_attr_uint = a
}
index idx {
path = idx
source = min
}
your configuration file
more details about “I open mysql through Manticore I see the number 0 instead of the prices”: