How to connect to Mysql database through windows command line (cmd)

preview_player
Показать описание
The MySQL server can be started manually from the command line. This can be done on any version of Windows.

To start the mysql server from the command line, you should start a cmd

Go to the path C:\Program Files\MySQL\MySQL Server 5.5\bin
NOTE:The path may vary depending on the install location of MySQL on your system.

Now execute the below command:
mysql -u {username} -u {password} -h {remote server ip}

where remote server ip can be 127.0.0.1 or localhost

if in case the above command is not executed then use the below command

mysql -u {username} -p{password} -h {remote server ip}
Рекомендации по теме
Комментарии
Автор

was typing in sql shell?
anyways thank u

shashankashekharnayakclass
visit shbcf.ru