1 cat /proc/uptime| awk -F. '{run_days=$1 / 86400;run_hour=($1 % 86400)/3600;run_minute=($1 % 3600)/60;run_second=$1 % 60;printf("系統已運行:%d天%d時%d分%d秒",run_days,run_hour,run_minute,run_second)}'
1 systemctl list-unit-files
1 mysql -u bowen -p 123456 -h x.x.x.x
2 Enter password: 3 ERROR 1045 (28000): Access denied for user 'bowen'@'x.x.x.x' (using password: YES)
解決辦法就是在建立用戶時,指定開發人員的IP地址以下:mysql
1 CREATE USER '用戶'@'IP' IDENTIFIED BY 'password';#建立用戶
2 GRANT select ON #庫名字.#表名 TO ‘username’@‘host’ #給用戶受權select
問題持續更新.....sql