Skip to content

Commit

Permalink
apt install mysql-server errors in latest raspbian
Browse files Browse the repository at this point in the history
  • Loading branch information
mario33881 committed Aug 19, 2019
1 parent 1dae630 commit ebe379b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion raspberry/auto/automysql/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ mysqlinstall(){
logger "MYSQL" "Installing Mysql..." true automysql.log

if ! $DEBUG ; then
sudo apt-get install mysql-server -y
{
sudo apt-get install mysql-server -y
} || {
# Latest versions of raspbian throws "mysql-server has no installation candidate" error
# https://mariadb.com/newsroom/press-releases/mariadb-replaces-mysql-as-the-default-in-debian-9/
sudo apt-get install default-mysql-server -y
}
else
echo "Should installing mysql..."
fi
Expand Down

0 comments on commit ebe379b

Please sign in to comment.