How can I stop redis-server?

Either connect to node instance and use shutdown command or if you are on ubuntu you can try to restart redis server through init.d: /etc/init.d/redis-server restart or stop/start it: /etc/init.d/redis-server stop /etc/init.d/redis-server start On Mac redis-cli shutdown

Kill a postgresql session/connection

You can use pg_terminate_backend() to kill a connection. You have to be superuser to use this function. This works on all operating systems the same. SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE — don’t kill my own connection! pid <> pg_backend_pid() — don’t kill the connections to other databases AND datname=”database_name” ; Before executing this query, you … Read more

Elasticsearch query to return all records

I think lucene syntax is supported so: http://localhost:9200/foo/_search?pretty=true&q=*:* size defaults to 10, so you may also need &size=BIGNUMBER to get more than 10 items. (where BIGNUMBER equals a number you believe is bigger than your dataset) BUT, elasticsearch documentation suggests for large result sets, using the scan search type. EG: curl -XGET ‘localhost:9200/foo/_search?search_type=scan&scroll=10m&size=50’ -d ‘ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)