Hi all,
i'm writting a batch file to create user and grant privileges in mysql.
But i don't know how to create key event ( line red ).
cd C:\Program Files\MySQL\MySQL Server 5.6\bin
c:
mysql -u root -p
(Press Key ENTER)
create user "db_user";
grant all on db_temp.* to 'db_user'@'127.0.0.1' identified by 'db_password';
Key press Enter in batch file
Moderator: DosItHelp
Re: Key press Enter in batch file
Is the red event a simple pause, or is the enter key supposed to be within the MySQL interface?
-
- Posts: 8
- Joined: 13 Nov 2012 20:27
Re: Key press Enter in batch file
foxidrive wrote:Is the red event a simple pause, or is the enter key supposed to be within the MySQL interface?
Is the enter key supposed to be within the MySQL interface.
Can you suggest me ?
Thanks you
Re: Key press Enter in batch file
You can use SENDKEYS with a VBS script or AutoIt can press keys too.