How to connect from windows command prompt to mysql command line

后端 未结 16 1958
南旧
南旧 2020-12-12 23:30

I\'m trying to connect to mysql server command line from my windows prompt

I write the next line in cmd but i get an error.

cd C:\\MYSQL\\bin\\
         


        
16条回答
  •  无人及你
    2020-12-13 00:12

    syntax to open mysql on window terminal as:

    mysql -u -p

    e.g. mysql -uroot -proot

    where: -u followed by username of your database , which you provided at the time of installatin and -p followed by password

    Assumption: Assuming that mysql bin already included in path environment variable. if not included in path you can go till mysql bin folder and then run above command. if you want to know how to set path environment variable

提交回复
热议问题