【发布时间】:2016-02-13 02:49:54
【问题描述】:
我正在使用功能齐全的 SMS 应用程序执行单元测试。我在运行单元测试时遇到了这个问题。
如果我只是在我自己的电脑上使用 mysql,谁能向我解释为什么我需要一个 ip?我显然使用 localhost、root 和 admin。那么为什么我还需要这样的IP地址呢?任何人都可以解释一下急需。
我在您提出答案之前就开始添加这些代码
"CREATE user '" & txtUsername.Text & "'@'" & txtServer.Text & "' IDENTIFIED BY '" & txtPassword.Text & "';"
"GRANT ALL PRIVILEGES ON *.* TO '" & txtUsername.Text & "'@'" & txtServer.Text & "' identified by '" & txtPassword.Text & "' WITH GRANT OPTION;"
"CREATE user '" & txtUsername.Text & "'@'%' IDENTIFIED BY '" & txtPassword.Text & "';"
"GRANT ALL PRIVILEGES ON *.* TO '" & txtUsername.Text & "'@'%' identified by '" & txtPassword.Text & "' WITH GRANT OPTION;"
"FLUSH PRIVILEGES;"
然后我想出了这个问题。我不知道先做什么
谁能帮帮我:'(
【问题讨论】:
标签: mysql database vb.net unit-testing testing