R
R
Red Rain2014-11-21 23:36:05
MySQL
Red Rain, 2014-11-21 23:36:05

Why does MySQL 5.5 say "Permission denied" via cmd?

MySQL 5.5 says "Permission denied" via cmd. Once went to mysql.exe via cmd, created a database. He left, then went back in and climbed on help. Looked out. When I tried to log in again - Windows 8.1 displays "This application cannot run on your PC. To find a version for your computer, contact the application manufacturer.". Does not start both when OpenServer is turned on and when it is turned off. In cmd it displays "Permission denied".
Here are the lines I tried:
C:\OpenServer\modules\database\MySQL-5.5\bin\mysql.exe
C:\OpenServer\modules\database\MySQL-5.5\bin\mysql.exe -uroot
C:\OpenServer\modules\ database\MySQL-5.5\bin\mysql.exe -uroot -p
C:\OpenServer\modules\database\MySQL-5.5\bin\mysql.exe;
How to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egorithm, 2016-05-18
@EgoRusMarch

Try to go to the bin directory and only then hammer in mysql there.
The syntax is:
mysql [-h hostname] -u username -p[password] [database name]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question