Skip to content

Commit 100b690

Browse files
authored
Update MySQL Tips and Tricks.md
1 parent 8f50fde commit 100b690

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

_tips_and_tricks/MySQL Tips and Tricks.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ GRANT ALL PRIVILEGES ON *.* TO 'USER'@'HOST' IDENTIFIED BY 'PASSWORD' WITH GRANT
3939
On newer versions
4040
```mysql
4141
CREATE USER dba@fqdn IDENTIFIED BY 'password';
42+
CREATE USER dba@fqdn IDENTIFIED VIA unix_socket;
4243
GRANT ALL PRIVILEGES ON *.* TO 'dba'@'FQDN' WITH GRANT OPTION;
4344
flush privileges;
4445
```
@@ -60,6 +61,12 @@ mysql -e "update user set plugin='mysql_native_password' where user='root'" mysq
6061
mysql -e "flush privileges;"
6162
```
6263

64+
65+
## Install timezones
66+
```
67+
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql mysql
68+
```
69+
6370
## Configuration Parameters
6471

6572
```ini

0 commit comments

Comments
 (0)