How to find the mysql data directory from command line in windows

后端 未结 8 1302
后悔当初
后悔当初 2020-12-07 07:50

In linux I could find the mysql installation directory with the command which mysql. But I could not find any in windows. I tried echo %path% and i

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 08:16

    Output on Windows:
    you can just use this command,it is very easy!

    1. no password of MySQL:

    mysql ?
    

    2. have password of MySQL:

    mysql -uroot -ppassword mysql ?
    

提交回复
热议问题