File: mysql

package info (click to toggle)
python-oslo.db 4.40.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,124 kB
  • sloc: python: 11,134; sh: 52; makefile: 26
file content (18 lines) | stat: -rw-r--r-- 546 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -ex

debconf-set-selections <<EOT
mysql-server-5.7 mysql-server/root_password password rootpassword
mysql-server-5.7 mysql-server/root_password_again password rootpassword
EOT

DEBIAN_FRONTEND=noninteractive dpkg-reconfigure mysql-server-5.7

mysql --user=root --password=rootpassword <<EOT
SET default_storage_engine=MYISAM;
DROP DATABASE IF EXISTS openstack_citest;
CREATE DATABASE openstack_citest CHARACTER SET utf8;
EOT

export OS_TEST_DBAPI_ADMIN_CONNECTION=mysql://root:rootpassword@localhost/
ostestr init && ostestr run -p