Skip to content

sh: mysql: command not found on wp core config #1223

@alessandrotesoro

Description

@alessandrotesoro

I've installed wp cli following the guidelines here http://wp-cli.org/ since i'm running MAMP on my mac, i've created a .bash_profile file into my user directory like explained here http://stackoverflow.com/questions/4145667/how-to-override-the-path-of-php-to-use-the-mamp-path/10653443#10653443

My .bash_profile file looks like this

export MAMP_PHP=/Applications/MAMP/bin/php/php5.5.10/bin
export PATH="$MAMP_PHP:$PATH"

If i run wp --info

i get this

PHP binary: /Applications/MAMP/bin/php/php5.5.10/bin/php
PHP version:    5.5.10
php.ini used:   /Applications/MAMP/bin/php/php5.5.10/conf/php.ini
WP-CLI root dir:    phar://wp-cli.phar
WP-CLI global config:   
WP-CLI project config:  
WP-CLI version: 0.15.1

I have then ran the following into the folder i created for my wp installation

wp core download

I have then ran the following to setup the wp-config file

wp core config --dbname=db --dbuser=root

And there's the error

sh: mysql: command not found

What am i doing wrong? I've checked existing topics here on github but i can't find a proper solution to my situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions