Skip to content

Commit

Permalink
Added explicit encoding indication when importing (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeAnSolovev authored Nov 26, 2024
1 parent 54b559c commit 7031217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deb.install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ EOF
# Applying privilege changes
sudo mysql -e "FLUSH PRIVILEGES;" 2>&1 | sudo tee -a "$logsInst" > /dev/null

# Exporting a database
{ sudo cat /var/www/torrentpier/install/sql/mysql.sql | sudo mysql -u "$userSql" -p"$passSql" "$dbSql"; } 2>&1 | sudo tee -a "$logsInst" > /dev/null
# Import a database
{ sudo cat /var/www/torrentpier/install/sql/mysql.sql | sudo mysql --default-character-set=utf8mb4 -u "$userSql" -p"$passSql" "$dbSql"; } 2>&1 | sudo tee -a "$logsInst" > /dev/null

# We set the rights to directories and files
sudo chown -R www-data:www-data /var/www/torrentpier 2>&1 | sudo tee -a "$logsInst" > /dev/null
Expand Down

0 comments on commit 7031217

Please sign in to comment.