I have installed MariaDB server on my Mac using homebrew. I can access it no problem but I need to set up a local config file using the mysql_config_editor
command. When I try to do that I get a zsh: command not found: mysql_config_editor
error.
After some googling I found that I need to export the path to mysql folder in the zshrc file. I had trouble finding the actual folder I need to reference as it does not seem to be in the same location as all the answers I found. Is this the correct folder?
The below portion has been solved by the input from @wiimm. However, the added path to the zshrc folder still does not allow me to run the mysql_config_editor
command, same zsh error.
After finding this folder I run nano ~/.zshrc
command and added export PATH=$PATH:/usr/local/var/mysql/bin
to the file.
However, when I run the source ~/.zshrc
command I get a /Users/olesn/.zshrc:7: parse error near `\n'
error.
Are the steps that I am doing correct in order for me to be able to set up the local config file, and if yes, how can I resolve this parse error?
Any help would be most appreciated.
CodePudding user response:
MariaDB doesn't install mysql_config_editor
which is why its not found.