🎉 سال نو، مهارت نو، مشاوره رایگان نقشه راه برنامه نویسی (آفر ویژه ثبت نام قبل از افزایش قیمت 🔥)
۰ ثانیه
۰ دقیقه
۰ ساعت
۱ علی نعیمی
powershell error
محسن موحد حل شده توسط محسن موحد

متن کامل دستور و خطا

 

mysql -h localhost -u root -p
mysql : The term 'mysql' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ mysql -h localhost -u root -p
+ ~~~~~
   + CategoryInfo          : ObjectNotFound: (mysql:String) [], CommandNotFoundException
   + FullyQualifiedErrorId : CommandNotFoundException

سلام،

مسیر فایل نصبی mysql رو در قسمت environment variable ویندوز(داخل استارت سرچ کنید) در مسیر path اضافه کنید تا سیستم عامل شناسایی کند و بعد مجدد cmd/پاورشل و ... رو باز کنید.

بهترین پاسخ
محسن موحد ۱۴ آذر ۱۴۰۲، ۲۱:۴۸