diff --git a/scripts/update_db_pwd.sh b/scripts/update_db_pwd.sh index eba6dd0..dae2656 100755 --- a/scripts/update_db_pwd.sh +++ b/scripts/update_db_pwd.sh @@ -3,10 +3,7 @@ source /etc/birdnet/birdnet.conf sudo mysql -e " - UPDATE mysql.user - SET Password=PASSWORD('${DB_PWD}') - WHERE USER='birder' - AND Host='localhost'; + SET PASSWORD FOR 'birder'@'localhost' = PASSWORD('${DB_PWD}'); FLUSH PRIVILEGES"; git -C /home/pi/BirdNET-Pi checkout -f analyze.py git -C /home/pi/BirdNET-Pi checkout -f scripts/viewdb.php