Skip to content

Testing

Inada Naoki edited this page May 19, 2023 · 8 revisions

Maybe you need to edit the parameters the connection to the sever is opened with. Here is an example how you can set a different password:

Linux / Unix based

$ export MYSQL_TEST_PASS=root

Windows

$ SET MYSQL_TEST_PASS=root

Parameter List

  • MYSQL_TEST_USER ( User )
  • MYSQL_TEST_PASS ( Password )
  • MYSQL_TEST_PROT ( Network Protocol )
  • MYSQL_TEST_ADDR ( Network Adress )
  • MYSQL_TEST_DBNAME ( Database name)
  • MYSQL_TEST_CONCURRENT ( 1 = enable ConcurrentTest )

Use Docker to run MySQL.

You don't need to set environment variable with this MySQL server with Docker.

docker run -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -e MYSQL_DATABASE=gotest -p 3306:3306 \
    --rm --name mysqld mysql:latest --innodb-flush-log-at-trx-commit=0 --local-infile=1
Clone this wiki locally