Mysql Secure Installation (Unattended)
NB : MyPass is your current mysql password
echo -e "MyPass\nn\nY\nY\nY\nY\n" | mysql_secure_installation 2>/dev/null
Result:
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
| # Specifically we are trying to do 2 things with the erlang `:ssh` module: | |
| # Make a connection (use :ssh.connect/4`) and pass in the ssh key from something other than a file on disk | |
| # And then with an open connection, bind the connection to a local port (i.e. setup a ssh tunnel) | |
| # use :ssh.tcpip_tunnel_to_server/5 or :ssh.tcpip_tunnel_to_server/6 | |
| # Example (working) code: | |
| defmodule SSHTunnel do | |
| @local_port 9999 | |
| @remote_port 1234 |
| <?php | |
| /** | |
| * Description of VideoStream | |
| * | |
| * @author Rana | |
| * @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
| */ | |
| class VideoStream | |
| { | |
| private $path = ""; |
| <?php | |
| namespace App\Http; | |
| /** | |
| * Description of VideoStream | |
| * | |
| * @author Rana | |
| * @link https://gist.github.com/vluzrmos/d5682ad426525196d069 | |
| */ |
| # install latest postgresql | |
| sudo yum install postgresql-server postgresql-contrib | |
| # start postgresql | |
| sudo systemctl start postgresql | |
| # change postgres user password | |
| sudo passwd postgres | |
| # create a database and create a new user |
Mysql Secure Installation (Unattended)
NB : MyPass is your current mysql password
echo -e "MyPass\nn\nY\nY\nY\nY\n" | mysql_secure_installation 2>/dev/null
Result:
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB