The option -p opens the password prompt, and you’ll have to enter the one you got during the installation phase. Now, you’ll need to connect to your MySQL server and reset that password: mysql -u root -p Let’s check that the installation works! If you enter mysql -version, you should get something like this: /usr/local/mysql/bin/mysql Ver 14.14 Distrib 5.7.29, for macos10.14 (x86_64) using EditLine wrapper bash_profile: alias mysql=/usr/local/mysql/bin/mysql alias mysqladmin=/usr/local/mysql/bin/mysqladminĭon’t forget to enter source bash_profile when you’re done so that the aliases are active. Then, it might be handy to set a few aliases in. On a Mac, you’ll only need to head to the System Preferences and activate the server. Before downloading, the page asks you to create an account at Oracle, but you can skip that step.Īfter double-clicking the DMG-file and waiting for ten minutes or so, you’re almost ready to go! But make sure you save the password that you’re given upon installation, or you will be sorry… I picked an earlier version of the DMG-archive, since my Mac is old and the latest version of MySQL won’t run on it. Photo by Demi-Felicia Vares on Unsplash Installationįrom the download page, you’ll need to pick the archive that is compatible with your system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |