مشکلی که احتمالا بهش بر میخورید خطایی به این شکل هست:
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
برای حل این مشکل باید:
1. به Control Panel\System and Security\System برید.
2. Advanced system settings رو انتخاب کنید.
3. Environment Variables رو انتخاب کنید.
4. درقسمت System variables ، path آدرس پوشه bin دیتابیس رو اضافه کنید.
برای من آدرس به صورت C:\xampp\mysql\bin بود.
5. کامندلاین رو یک بار ببندید و دوباره امتحان کنید.
نکته:
من اول رفتم و دیتابیس رو جدا نصب کردم و به مشکلاتی برخوردم. باید توجه داشته باشید که با نصب xampp یا برنامههای شبیه اون دیتابیس رو سیستم شما نصب میشه و نیاز به نصب جدا نیست.