Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

env: mysql: No such file or directory after `wp import`

I'm trying to import a database locally using wp db import databasename.sql but I get the following error: env: mysql: No such file or directory. Can anyone tell me how to resolve this?

like image 990
user2753924 Avatar asked Jun 08 '17 15:06

user2753924


1 Answers

I resolved this by changing my $PATH, run this in command or update your .bash_profile:

export PATH=$PATH:/usr/local/mysql/bin
like image 200
lakewood Avatar answered Sep 21 '22 02:09

lakewood