Error handling is a pain, and it's easy to get by for a long time in Node.js without dealing with many errors correctly. But building robust Node.js apps requires dealing properly with errors, and it's not hard to learn how.
Create table
CREATE DATABASE `mydb` CHARACTER SET utf8 COLLATE utf8_general_ci;
Add user Access
GRANT ALL ON `mydb`.* TO `username`@localhost IDENTIFIED BY 'password';
Add user Access - FULL CONTROL
GRANT ALL PRIVILEGES ON *.* TO 'username'@'192.168.%' IDENTIFIED BY 'password' WITH GRANT OPTION;
Flush Privileges
FLUSH PRIVILEGES;
Usage from man wall
:
wall [file]
Wall displays the contents of file or, by default, its standard input
simple usage:
$ echo "who's out there" | wall
for bigger text messages:
$ wall << .
who is out there?
.
This would be a "useless use of here documents", because by default the terminal itself will be connected to wall
's standard input and wal
l will start reading from it until it receives an end-of-file character (Ctrl+D
):
$ wall
who is out there?
^D
(sleep 300; echo "80" > /sys/class/leds/blue/brightness) &