mysqllinuxapachelampp

Accesing LAMPP mysql via the command line on linux


I've have installed LAMPP, I need to access MySQL from the terminal but I dont know how, because if I simply type mysql into the prompt it says the mysql program is not installed, but it has to be installed because it stands for Linux + Apache + MySQL + PHP + Perl. Thank


Solution

  • On my system this solved my problem

    sudo /opt/lampp/lampp startmysql
    /opt/lampp/bin/mysql -u username