Mac os 10.11 free download - R for Mac OS X, Apple Mac OS X Mavericks, Apple Mac OS Update 8.6, and many more programs. How to install MySQL on Mac OS X 10.11 (El Capitan)? Ask Question Asked 4 years, 10 months ago. Active 4 years, 10 months ago. Viewed 3k times 2. I am following this guide to install MySQL, Apache and Phpmyadmin on Mac OS X 10.11 (El Capitan). I have not upgraded to El Captain — instead, I have done a complete clean reinstall.
Posted by: John Millar Date: February 20, 2016 01:07PM
Like other users I am unable to install MySQL Utilities 1.5.6 or earlier; I also tried to install MySQL Connector/Python 2.1.3 (as suggested earlier in the thread on this issue OS X 10.11.1 (El Capitan) but that also failed. Can we not downgrade to an earlier OS X such as Yosemite, or such other OS X which was compatible with MySQL Utilities and MySQL Connector/Python?
Options:Reply•Quote
Views
Posted
16892
November 05, 2015 11:08PM
20734
![]()
November 06, 2015 09:52AM
3607
December 02, 2015 04:32PM
2907
January 15, 2016 10:45AM
1895
May 25, 2016 08:29PM
3613
February 20, 2016 01:07PM
2315
March 19, 2016 07:52AM
2076
March 29, 2016 11:49AM
1883
April 07, 2016 01:41PM
1897
April 14, 2016 06:46AM
1909
June 03, 2016 07:46PM
1802
April 27, 2016 03:53AM
1675
April 27, 2016 11:42AM
1565
May 02, 2016 01:16PM
1684
May 04, 2016 11:42AM
1316
July 21, 2016 08:09PM
1336
July 25, 2016 07:03AM
1063
October 12, 2016 09:06AM
1028
October 18, 2016 06:35AM
941
November 10, 2016 05:37PM
1060
November 12, 2016 10:30PM
1012
November 14, 2016 03:55PM
1009
November 15, 2016 11:42AM
1249
November 21, 2016 03:11PM
1002
December 06, 2016 08:34PM
1019
December 12, 2016 12:55PM
1270
November 14, 2016 07:38AM
1192
January 05, 2017 04:56AM
1038
January 17, 2017 04:52AM
1092
January 19, 2017 08:04PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.
macOS Update: While these instructions still work, there are new posts for recent versions of macOS, the latest being Install Apache, PHP, and MySQL on macOS Mojave.
I have installed Apache, PHP, and MySQL on Mac OS X since Leopard. Each time doing so by hand. Each version of Mac OS X having some minor difference. This post serves as much for my own record as to outline how to install Apache, MySQL, and PHP for a local development environment on Mac OS X
I am aware of the several packages available, notably MAMP. These packages help get you started quickly. But they forego the learning experience and, as most developers report, eventually break. Personally, the choice to do it myself has proven invaluable.
It is important to remember Mac OS X runs atop UNIX. So all of these technologies install easily on Mac OS X. Furthermore, Apache and PHP are included by default. In the end, you only install MySQL then simply turn everything on.
First, open Terminal and switch to
root to avoid permission issues while running these commands.
Enable Apache on Mac OS X
Note: Prior to Mountain Lion this was an option for Web Sharing in System Prefrences → Sharing.
Verify It works! by accessing http://localhost
Enable PHP for ApacheMysql Mac 10.11 Download
OS X Mavericks Update: You will need to rerun the steps in this section after upgrading an existing install to Mac OS X Mavericks.
First, make a backup of the default Apache configuration. This is good practice and serves as a comparison against future versions of Mac OS X.
Now edit the Apache configuration. Feel free to use TextEdit if you are not familiar with vi.
Uncomment the following line (remove
# ): Download android photos to mac osx.
Restart Apache:
Install MySQL
![]()
The README also suggests creating aliases for
mysql and mysqladmin . However there are other commands that are helpful such as mysqldump . Instead, I updated my path to include /usr/local/mysql/bin .
Note: You will need to open a new Terminal window or run the command above for your path to update.
I also run
mysql_secure_installation . While this isn't necessary, it's good practice.
Connect PHP and MySQL
You need to ensure PHP and MySQL can communicate with one another. There are several options to do so. I do the following:
Creating VirtualHosts
You could stop here. PHP, MySQL, and Apache are all running. However, all of your sites would have URLs like http://localhost/somesite/ pointing to /Library/WebServer/Documents/somesite. Not ideal for a local development environment.
OS X Mavericks Update: You will need to rerun the steps below to uncomment the vhost
Include after upgrading an existing install to Mac OS X Mavericks.
To run sites individually you need to enable VirtualHosts. To do so, we'll edit the Apache Configuration again.
Uncomment the following line:
Now Apache will load httpd-vhosts.conf. Let's edit this file.
Here is an example of VirtualHosts I've created.
The first
VirtualHost points to /Library/WebServer/Documents . The first VirtualHost is important as it behaves like the default Apache configuration and used when no others match.
The second
VirtualHost points to my dev workspace and I can access it directly from http://jason.local. For ease of development, I also configured some custom logs.
Note: I use the extension local. This avoids conflicts with any real extensions and serves as a reminder I'm in my local environment.
Restart Apache:
In order to access http://jason.local, you need to edit your hosts file.
Add the following line to the bottom:
I run the following to clear the local DNS cache:
Mysql For Mac
Now you can access http://jason.local. Itunes 11.1 download free mac.
Note: You will need to create a new
VirtualHost and edit your hosts file each time you make a new local site.
A note about permissions
You may receive 403 Forbidden when you visit your local site. This is likely a permissions issue. Simply put, the Apache user (
_www ) needs to have access to read, and sometimes write, your web directory.
If you are not familiar with permissions, read more. For now though, the easiest thing to do is ensure your web directory has permissions of
755 . You can change permissions with the command:
In my case, all my files were under my local
~/Documents directory. Which by default is only readable by me. So I had to change permissions for my web directory all the way up to ~/Documents to resolve the 403 Forbidden issue.
Note: There are many ways to solve permission issues. I have provided this as the easiest solution, not the best.
Install PHPMyAdmin
Unless you want to administer MySQL from the command line, I recommend installing PHPMyAdmin. I won't go into the details. Read the installation guide for more information. I install utility applications in the default directory. That way I can access them under, in this case, http://localhost/phpmyadmin.
Closing
A local development environment is a mandatory part of the Software Development Process. Given the ease at which you can install Apache, PHP, and MySQL on Mac OS X there really is no excuse. Program to download movies for mac.
Find this interesting? Let's continue the conversation on Twitter.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |