mariadb-datagen

command module
v0.0.0-...-55d6355 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

README

Data generator for MariaDB

Setting up DB for testing

# Server
$ docker run --detach --name some-mariadb \
     -v $PWD/mariadbdata:/var/lib/mysql \
     --env MYSQL_USER=mariauser \
     --env MYSQL_PASSWORD=mariauser123 \
     --env MYSQL_ROOT_PASSWORD=secretpassword  \
     --publish 3306:3306/tcp \
     docker.io/library/mariadb:10.4 \
     --innodb_buffer_pool_size=8G --innodb_log_file_size=8G

To connect to the server, use the docker container IP (doc) - localhost does not work.

# Client
$ docker run -it --rm \
     docker.io/library/mariadb:10.4 \
     mysql -h 172.17.0.2 -u root -p


Running the tool

./mariadb-datagen -test-db x13 -threads 16 -size 16G
2022/11/22 13:59:45 Created database. Populating...
Generating 16 table(s) with 488282 rows (2KiB each) per table
done.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL