To make that easier, just create an alias in the. Note, using Docker, you will need to force a TCP/IP connection to your MySQL container: mysql -u username -p -h 127.0.0.1 Close your terminal, open it again, and you should be good to go. Once MySQL Workbench is installed, you just need to add the path to the mysql binary to your path: /Applications/MySQLWorkbench.app/Contents/MacOS Since I wanted MySQL Workbench installed anyway, this seemed like the easiest solution for me. You can’t download the client only from the MySQL Community Edition site (at least for Mac). On the other hand, its really hard to install and manage multiple versions of MySQL on your computer. But Docker might be too big and eat up a large portion of memory, or sometimes you feel clumsy configuring the local server using the command line. Its not an ideal solution but its worked for me so far. To install MySQL on Mac, the two most common ways are Docker and Homebrew service. Dont use a virtual environment, install python3 with homebrew and install mysql normally with homebrew, then pip3 install mysqlclient and it should work fine. If, like me, you are using Docker or some other type of virtualization to provide a MySQL service for your Dev environment on a Mac, you will find that you do not have a MySQL client installed. So this isnt so much as a fix as an alternate solution but if youre running a virtual environment.
0 Comments
Leave a Reply. |