简体   繁体   English

在Windows8上拒绝mysqlslap访问

[英]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: 尝试这个:

  1. Open CMD( here is a link showing how to do). 打开CMD( 是显示操作方法的链接)。

  2. 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 ..”来返回一个文件夹, 这里是一个链接显示如何做)

  3. 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.

相关问题 我为什么得到:拒绝用户'traffic2'@'localhost'的访问(使用密码:NO)用于mysqlslap - why am i getting: Access denied for user 'traffic2'@'localhost' (using password: NO) for mysqlslap 在Windows 10中升级旧Xampp后访问被拒绝 - Access Denied after upgrading old Xampp in Windows 10 执行代码时,对用户“ root” @“ localhost”的MySQL访问被拒绝(Windows 7) - MySQL Access denied for user 'root'@'localhost' when executing code (Windows 7) 升级到MAMP PRO 3.2.0 for Windows,导致#1045-访问被拒绝错误 - Upgraded to MAMP PRO 3.2.0 for Windows Causing #1045 - Access denied Error Windows 上的 MySQL - 全新安装后用户“root”@“localhost”的访问被拒绝 - MySQL on Windows - Access denied for user 'root'@'localhost' after fresh install Windows 上的 MySQL:用户 'root'@'localhost' 的访问被拒绝(使用密码:YES) - MySQL on Windows: Access Denied for User 'root'@'localhost' (using password: YES) 用户'SYSTEM'@'localhost'的访问被拒绝(PHP 5.2.17 + mySQL 5.5.8 + Windows 7) - Access denied for user 'SYSTEM'@'localhost' (PHP 5.2.17 + mySQL 5.5.8 + Windows 7) 如何解决“mysql工作台窗口中用户'root'@'localhost'的访问被拒绝” - How to resolve “access denied for user 'root'@'localhost' in mysql workbench windows” 使用 Cpanel 拒绝用户 'root'@'localhost' windows 的访问 - Access denied for user 'root'@'localhost' windows using Cpanel MariaDB mysqlslap无法正常工作 - MariaDB mysqlslap not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM