Solution 1:
Check whether the configuration of environment variables is correct.
Solution 2:
Find the mysql or MariaDB file, right-click as administrator
Enter as identity, enter mysql -uroot -p again to use.
The above two solutions can solve that mysql is not an internal command or a runnable program.