mkdir -p debug # Ensure dir exists before using it
find /var/lib/mysql -ls > debug/var-lib-mysql.list || true # Ignore errors about "no such file or directory"
cp -ra /etc/mysql debug/etc-mysql
cp -ra /var/log/mysql debug/var-log-mysql
mariadb --skip-column-names -e "select @@version, @@version_comment" # Show version
echo 'SHOW DATABASES;' | mariadb # List databases
mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;" # Test that InnoDB works
mariadb -e "SELECT Host, User, plugin,authentication_string FROM user;" mysql
mariadb -e "SELECT * FROM plugin;" mysql
.test-verify-libs:&test-verify-libs
# Don't use a collapsed command as Gitlab-CI would hide each command from the output
-cd ${WORKING_DIR}# Don't repeat this step, it's just cd ./debian/output
-apt-get update
# Install MariaDB built in this commit
-apt-get install -y ./*.deb
# Verify installation of MariaDB built in this commit
-dpkg -l | grep -iE 'maria|mysql|galera' || true# List installed
-mariadb --version# Client version
-*test-prepare-container
-*test-install
-service mariadb status# There is no init.d/mysql in MariaDB 10.6
-mkdir -p debug# Ensure dir exists before using it
-find /var/lib/mysql -ls > debug/var-lib-mysql.list || true# Ignore errors about "no such file or directory"
-cp -ra /etc/mysql debug/etc-mysql
-cp -ra /var/log/mysql debug/var-log-mysql
-mariadb --skip-column-names -e "select @@version, @@version_comment"# Show version
-echo 'SHOW DATABASES;' | mariadb# List databases
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works
-apt-get install -o Dpkg::Options::=--force-confnew -y ./*.deb || true# Allow to proceed so debug artifacts get collected
# Verify installation of MariaDB built in this commit
-dpkg -l | grep -iE 'maria|mysql|galera' || true# List installed
-mariadb --version# Client version
-service mysql status
-mkdir -p debug# Ensure dir exists before using it
-find /var/lib/mysql -ls > debug/var-lib-mysql.list || true# Ignore errors about "no such file or directory"
-cp -ra /etc/mysql debug/etc-mysql
-cp -ra /var/log/mysql debug/var-log-mysql
-mariadb --skip-column-names -e "select @@version, @@version_comment"# Show version
-echo 'SHOW DATABASES;' | mariadb# List databases before upgrade are still there
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works
-*test-prepare-container
-*test-install
-service mariadb status# There is no init.d/mysql in MariaDB 10.6
-sed 's/buster/sid/g' -i /etc/apt/sources.list# Enable next Debian release
-sed '/sid-updates/d' -i /etc/apt/sources.list# Remove repositories that don't exist for Sid
-sed '/security/d' -i /etc/apt/sources.list# Remove repositories that don't exist for Sid
-apt-get update; apt-get install -y apt# Uprade minimal stack first
-apt-get install -o Dpkg::Options::=--force-confnew -y ./*.deb || true# Allow to proceed so debug artifacts get collected
# Verify installation of MariaDB built in this commit
-dpkg -l | grep -iE 'maria|mysql|galera' || true# List installed
-mariadb --version# Client version
-*test-verify-initial
-*test-enable-sid-repos
-*test-install
-service mysql status
-mkdir -p debug# Ensure dir exists before using it
-find /var/lib/mysql -ls > debug/var-lib-mysql.list || true# Ignore errors about "no such file or directory"
-cp -ra /etc/mysql debug/etc-mysql
-cp -ra /var/log/mysql debug/var-log-mysql
-mariadb --skip-column-names -e "select @@version, @@version_comment"# Show version
-echo 'SHOW DATABASES;' | mariadb# List databases before upgrade are still there
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works
-sed 's/stretch/sid/g' -i /etc/apt/sources.list# Enable next Debian release
-sed '/sid-updates/d' -i /etc/apt/sources.list# Remove repositories that don't exist for Sid
-sed '/security/d' -i /etc/apt/sources.list# Remove repositories that don't exist for Sid
-apt-get update; apt-get install -y apt# Uprade minimal stack first
-apt-get install -o Dpkg::Options::=--force-confnew -y ./*.deb || true# Allow to proceed so debug artifacts get collected
# Verify installation of MariaDB built in this commit
-dpkg -l | grep -iE 'maria|mysql|galera' || true# List installed
-mariadb --version# Client version
# Verify installation of MariaDB from Buster
-*test-verify-initial
-*test-enable-sid-repos
-*test-install
-service mysql status
-mkdir -p debug# Ensure dir exists before using it
-find /var/lib/mysql -ls > debug/var-lib-mysql.list || true# Ignore errors about "no such file or directory"
-cp -ra /etc/mysql debug/etc-mysql
-cp -ra /var/log/mysql debug/var-log-mysql
-mariadb --skip-column-names -e "select @@version, @@version_comment"# Show version
-echo 'SHOW DATABASES;' | mariadb# List databases before upgrade are still there
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works
-mariadb --skip-column-names -e "select engine, support, transactions, savepoints from information_schema.engines order by engine" | sort
-mariadb --skip-column-names -e "select plugin_name, plugin_status, plugin_type, plugin_library, plugin_license from information_schema.all_plugins order by plugin_name, plugin_library"
mariadb --skip-column-names -e "select engine, support, transactions, savepoints from information_schema.engines order by engine" | sort
mariadb --skip-column-names -e "select plugin_name, plugin_status, plugin_type, plugin_library, plugin_license from information_schema.all_plugins order by plugin_name, plugin_library"
-mkdir -p debug# Ensure dir exists before using it
-find /var/lib/mysql -ls > debug/var-lib-mysql.list || true# Ignore errors about "no such file or directory"
-cp -ra /etc/mysql debug/etc-mysql
-cp -ra /var/log/mysql debug/var-log-mysql
-mariadb --skip-column-names -e "select @@version, @@version_comment"# Show version
-echo 'SHOW DATABASES;' | mariadb# List databases before upgrade are still there
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works
-sleep 5# Give the mysql_upgrade a bit of time to complete before querying the server
-mysql -e "SELECT Host,User,plugin,authentication_string FROM user;" mysql
-mysql -e "SELECT * FROM plugin;" mysql
-echo 'SHOW DATABASES;' | mariadb# List databases before upgrade are still there
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works
-mysql -e "SELECT Host,User,plugin,authentication_string FROM user;" mysql
-mysql -e "SELECT * FROM plugin;" mysql
-echo 'SHOW DATABASES;' | mariadb# List databases before upgrade are still there
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works
-mysql -e "SELECT Host,User,plugin,authentication_string FROM user;" mysql
-mysql -e "SELECT * FROM plugin;" mysql
-echo 'SHOW DATABASES;' | mariadb# List databases before upgrade are still there
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works
-service mariadb status# There is no init.d/mysql in MariaDB 10.5
-mysql -e "SELECT Host,User,plugin,authentication_string FROM user;" mysql
-mysql -e "SELECT * FROM plugin;" mysql
-echo 'SHOW DATABASES;' | mariadb# List databases before upgrade are still there
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works
-mysql -e "SELECT Host,User,plugin,authentication_string FROM user;" mysql
-mysql -e "SELECT * FROM plugin;" mysql
-echo 'SHOW DATABASES;' | mariadb# List databases before upgrade are still there
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works
-mysql -e "SELECT Host,User,plugin,authentication_string FROM user;" mysql
-mysql -e "SELECT * FROM plugin;" mysql
-echo 'SHOW DATABASES;' | mariadb# List databases before upgrade are still there
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works