mysqldump: unknown variable 'set-gtid-purged=OFF'
php artisan schema:dump
$this->getPdo()->getAttribute(PDO::ATTR_SERVER_VERSION) - returns '5.7.31'
I can't reproduce that on this version.
if you can't reproduce it, then there is no problem. ok :)
@vladislavtkachenko Are you using mysql-default-client a.k.a maria-db-client?
This error occurs because the --set-gtid-purged option does not exist in mariadb.
Try this:
wget https://repo.mysql.com/mysql-apt-config_0.8.15-1_all.deb -P /tmp \
&& dpkg -i /tmp/mysql-apt-config_0.8.15-1_all.deb \
&& apt-get update -y \
&& apt-get install mysql-client -y
Most helpful comment
@vladislavtkachenko Are you using
mysql-default-clienta.k.amaria-db-client?This error occurs because the
--set-gtid-purgedoption does not exist in mariadb.Try this: