Wednesday, October 17, 2018

Cargo Commands for Rust Build

$ cargo new project
$ cd project $ vi Cargo.toml -------------------------------- [package] name = "project" version = "0.1.0" authors = ["you "] [dependencies] dependency = "0.1" -------------------------------- $ cargo install dependency $ cargo build $ cargo run

Install & Connect to MySQL

$ brew install mysql
==> Downloading https://homebrew.bintray.com/bottles/mysql-8.0.12.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring mysql-8.0.12.mojave.bottle.tar.gz
==> Caveats
We've installed your MySQL database without a root password. To secure it run:
    mysql_secure_installation

MySQL is configured to only allow connections from localhost by default

To connect run:
    mysql -uroot

To have launchd start mysql now and restart at login:
  brew services start mysql
Or, if you don't want/need a background service you can just run:
  mysql.server start
==> Summary
🍺  /usr/local/Cellar/mysql/8.0.12: 255 files, 233.0MB
$ mysql_secure_installation