
Product
Introducing Immutable Scans
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.
Converts MySQL DSN connection string to a my.cnf configuration file.
Installation:
go install rafal.dev/dsn2mycnf
Usage:
$ dsn2mycnf 'user:password@tcp(host:3306)/database'
[client]
host = "host"
port = 3306
user = "user"
password = "password"
database = "database"
ssl-mode = "PREFERRED"
Generate client configuration file database.cnf:
$ dsn2mycnf -out database.cnf 'user:password@tcp(host:3306)/database'
Start mysql client container:
$ docker run -ti --rm --mount type=bind,source=$PWD/database.cnf,target=/etc/mysql/conf.d/database.cnf mysql mysql -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 970989
Server version: 5.7.33-log Source distribution
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
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>
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.