[英]mysqlslap access denied on windows8
i'm getting access deniedwhen trying to run mysqlslap, and i'm suspecting it has something to do with me running on a windows 8.1 machine, but i can't confirm it anywhere. 尝试运行mysqlslap时,我被拒绝访问,并且我怀疑它与在Windows 8.1机器上运行的我有关,但是我无法在任何地方确认它。
the line i'm trying to run is 我要运行的线是
mysqlslap.exe --query="myquery" --iterations=10 --user=root -p=password --host=127.0.0.1 --delimiter=";" --create-schema=mydb
i've tried running -p without the password to get prompted for the password, but i get access denied before ever getting prompted for a password. 我曾尝试在没有密码的情况下运行-p来提示输入密码,但是在得到提示输入密码之前,我无法访问。
i've tried with and without the --host, --delimiter and --password 我已经尝试过是否使用--host,--delimiter和--password
besides the error on the command prompt i get a popup from windows saying that this app cannot run on my pc. 除了命令提示符下的错误外,我还从Windows弹出窗口,提示该应用程序无法在我的PC上运行。 searching for mysqlslap and windows 8 didn't help much.
搜索mysqlslap和Windows 8并没有太大帮助。
i confirmed my password by logging into mysql via commandpropt with user root and the password I passed as an argument to mysqlslap 我通过以root用户身份通过commandpropt登录mysql来确认密码,并将密码作为参数传递给mysqlslap
Try This: 尝试这个:
Open CMD( here is a link showing how to do). 打开CMD( 这是显示操作方法的链接)。
In CMD enter in MySQL Bin Folder like "C:\\Program Files\\MySQL\\MySQL Server 5.5\\bin".(to open folder in cmd use comand "cd" or "cd.." to back a folder, here is a link showing how todo do) 在CMD中,输入MySQL Bin文件夹,如“ C:\\ Program Files \\ MySQL \\ MySQL Server 5.5 \\ bin”。(要在cmd中打开文件夹,请使用com和“ cd”或“ cd ..”来返回一个文件夹, 这里是一个链接显示如何做)
So enter with comand: mysqlslap --create-schema=yourschema --query="your query" --concurrency=100 -uuser -ppassword
因此,请输入以下命令:
mysqlslap --create-schema=yourschema --query="your query" --concurrency=100 -uuser -ppassword
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.