You can do this if you follow this steps: Go to the xampp directory: cd /opt/lampp/ Go to the bin directory: cd bin Execute the script: ./mysql_upgrade