mysql : The term ‘mysql’ is not recognized HATA ÇÖZÜMÜ

PhpStorm kod editörü terminal penceresinden mysql bağlanırken kullandığınız “mysql -u root” komutu çalışmıyorsa aşağıdaki gibi bir hata almanız çok doğal;
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.

Windows kullanıyorsanız ortam değişkenlerinden PATH alanına XAMP kullanıyorsanız C:\xampp\mysql\bin şeklinde ekleme yaparsanız sorununuz çözülecektir. Farklı localhost kullananlar benzer bir yol izleyebilirler ve Editörü kapatıp açmayı unutmayın