Testing · go-sql-driver/mysql Wiki · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Testing

Inada Naoki edited this page Jul 1, 2023 · 8 revisions

Use Docker to run MySQL for testing

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
  • --innodb-flush-log-at-trx-commit=0: Do not wait disk at commit. This option is just for performance.
  • --local-infile=1: Enable LOAD LOCAL INFILE query.

If you set up MySQL without Docker, set local-infile server setting.

Parameters for test

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 )
Clone this wiki locally

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.