This file contains hidden or 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
$ sudo systemctl set-environment MY.SUFFIX="" | |
Failed to set environment: Invalid environment assignments |
This file contains hidden or 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
$ sudo systemctl start mariadb@node1 | |
$ sudo systemctl start mariadb@node2 |
This file contains hidden or 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
ExecStart=/usr/sbin/mysqld --defaults-group-suffix=%I \ | |
$_WSREP_NEW_CLUSTER $_WSREP_START_POSITION%I $MYSQLD_OPTS |
This file contains hidden or 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
ExecStart=/usr/sbin/mysqld --defaults-file=/etc/mysql/conf.d/my%I.cnf \ | |
$_WSREP_NEW_CLUSTER $_WSREP_START_POSITION%I $MYSQLD_OPTS |
This file contains hidden or 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
$ sudo systemctl start mariadb@{suffix} | |
$ sudo systemctl start mariadb@node1 | |
$ sudo systemctl start mariadb@node2 |
This file contains hidden or 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
$ find /etc/mysql/conf.d/ -name 'my*' | |
/etc/mysql/conf.d/mynode1.cnf | |
/etc/mysql/conf.d/mynode2.cnf |
This file contains hidden or 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
$ find /lib/systemd/system -name 'mariadb*' | |
/lib/systemd/system/mariadb.service | |
/lib/systemd/system/[email protected] | |
/lib/systemd/system/[email protected] |
This file contains hidden or 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
$ cat /etc/mysql/my.cnf | |
[mysqld] | |
<all common options> | |
[mysqldnode1] | |
<all options specific to node1> | |
[mysqldnode2] | |
<all options specific to node2> |
This file contains hidden or 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
/* | |
@file gowc.go | |
Count the number of vowels present in a text file. | |
*/ | |
package main | |
import ( | |
"flag" | |
"fmt" |
This file contains hidden or 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
$ figlet -ct -f script figlet | |
_ _ | |
| | o | | | |
| | __, | | _ _|_ | |
|/ | / | |/ |/ | | |
|__/|_/\_/|/|__/|__/|_/ | |
|\ /| | |
|/ \| | |
$ figlet -ct -f digital figlet | |
+-+-+-+-+-+-+ |