Files
runner-images/images/ubuntu/scripts/build/install-mysql.sh
T

31 lines
936 B
Bash
Raw Normal View History

2020-10-07 13:49:40 +05:00
#!/bin/bash -e
################################################################################
2023-11-22 21:49:23 +01:00
## File: install-mysql.sh
## Desc: Install MySQL Client
################################################################################
2023-12-29 12:36:27 +01:00
# Source the helpers for use with the script
source $HELPER_SCRIPTS/os.sh
# Mysql setting up root password
MYSQL_ROOT_PASSWORD=root
echo "mysql-server mysql-server/root_password password $MYSQL_ROOT_PASSWORD" | debconf-set-selections
echo "mysql-server mysql-server/root_password_again password $MYSQL_ROOT_PASSWORD" | debconf-set-selections
2022-03-31 08:11:08 +02:00
export ACCEPT_EULA=Y
2021-01-08 16:02:09 +03:00
2022-03-31 08:11:08 +02:00
# Install MySQL Client
2024-05-29 13:43:07 +02:00
apt-get install mysql-client
2022-03-31 08:11:08 +02:00
# Install MySQL Server
2024-05-29 13:43:07 +02:00
apt-get install mysql-server
2024-05-29 13:43:07 +02:00
# Install MySQL Dev tools
apt-get install libmysqlclient-dev
2021-12-07 23:38:14 +03:00
2020-03-05 10:57:16 +03:00
# Disable mysql.service
systemctl is-active --quiet mysql.service && systemctl stop mysql.service
systemctl disable mysql.service
2021-01-08 16:02:09 +03:00
invoke_tests "Databases" "MySQL"