Categories
Mariadb Uncategorized

mysql add user

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';

https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql

Categories
Redis

redis setup

setting up redis-server on casualcoder was straightforward.
you need:

redis-server and redis-cli.
you can test the server by using:

/redis-server --port 6380 --slaveof 127.0.0.1 6379

run the service and go:
the docs on the redis site recommend to update the config:


/etc/redis/redis.conf
    appendonly yes
    appendfsync everysec

Once redis is running the way you like, start er up. you can

sudo service redis-server restart

or add to startup by

systemctl enable redis-server