ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

MySQl accessed by ssh in win11

MySQl accessed by ssh in win11

1.Open PowerShell via administrator role,then run to confirm whether the ssh has been installed in win11

ssh -V

image

 

2.Access mysql via ssh, prerequisite you must configure mysql.exe path in system environment variables path “"C:\Program Files\MySQL\MySQL Server 9.0\bin\”

enviroment variables

image

 

 

 Then run below command

mysql -uroot -p -Dmydb;

 

image

 

 

3.When mysql logged successfully,then i can run sql commad

select now();
select current_timestamp();
select @@version;

image

 

返回列表