Last active
July 11, 2020 23:39
-
-
Save lcuevastodoit/8acd3d51582085497ff210bd8bc1439a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt update | |
apt-get install -y build-essential sudo apt-utils dialog | |
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb | |
sudo dpkg -i erlang-solutions_2.0_all.deb | |
sudo apt-get update | |
sudo apt-get install erlang | |
sudo apt-get install elixir | |
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash - | |
sudo apt-get update && apt-get install -y nodejs | |
node -v | |
npm -v | |
apt-get install -y mysql-server | |
apt-get install -y mysql-client libmysqlclient-dev | |
mysql_secure_installation | |
No validate password | |
some_password | |
some_password | |
yes remove anonymous users | |
yes disallow root login remote | |
yes remove test database | |
yes reload privileged tables | |
All done! | |
mysql> SELECT user,authentication_string,plugin,host FROM mysql.user; | |
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'some_password'; | |
myslq> FLUSH PRIVILEGES; | |
mysql> exit | |
Bye | |
# to test mysql -> mysql -u root -p | |
sudo apt-get install inotify-tools | |
mix local.hex | |
mix archive.install hex phx_new | |
mix phx.new myapp --database mysql | |
------------------------------------------------------------------------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment