How can I access the mysql command line tool when using XAMPP in OS X?

前端 未结 4 1506
小蘑菇
小蘑菇 2020-12-23 10:11

I\'ve got a vanilla install of XAMPP in OS X. How can I access the mysql command line tool? I\'ve tried typing \"mysql\" at the command line, and it spits back \"-bash: mysq

4条回答
  •  执笔经年
    2020-12-23 10:56

    Open terminal and Follow this bellow step to add mysql to your mac environmental variable

    step 1:

    sudo nano ~/.bash_profile
    

    step 2:

    export PATH=/opt/local/bin:/opt/local/sbin:/Applications/xampp/xamppfiles/bin:$PATH
    

    save it by control+x and then y and hit return. That's it!! now close the terminal and reopen

    mysql --version
    

    this will tell you which MySQL version you are using with xampp

提交回复
热议问题