开发者

Start a "throwaway" MySQL session for testing code?

开发者 https://www.devze.com 2022-12-15 00:05 出处:网络
If I want to be able to test my application against a empty MySQL database each time my application\'s testsuite is run, how can I start up a server as a non-root user which refers to a empty (not sav

If I want to be able to test my application against a empty MySQL database each time my application's testsuite is run, how can I start up a server as a non-root user which refers to a empty (not saved anywhere, or in saved to /tmp) MySQL database?

My application is in Pyth开发者_运维百科on, and I'm using unittest on Ubuntu 9.10.


--datadir for just the data or --basedir


You can try the Blackhole and Memory table types in MySQL.

0

精彩评论

暂无评论...
验证码 换一张
取 消