Install the OpenSSL on Debian based systems
sudo apt-get install openssl
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'some_pass'; | |
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; | |
## remote connection - not secure | |
CREATE USER 'admin'@'%' IDENTIFIED BY 'some_pass'; | |
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; | |
DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1'); |
package main | |
import "database/sql" | |
import ( | |
"fmt" | |
_ "github.com/go-sql-driver/mysql" | |
"github.com/satori/go.uuid" | |
"math/rand" | |
"sync" | |
) |
The idea is to use a Elastic Search Data Stream https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html
A data stream is a way to handle time-series data (such as webhook logs) that
?>