asfenciti.blogg.se

Mysql download for mac os x
Mysql download for mac os x






mysql download for mac os x
  1. #MYSQL DOWNLOAD FOR MAC OS X MAC OSX#
  2. #MYSQL DOWNLOAD FOR MAC OS X INSTALL#
  3. #MYSQL DOWNLOAD FOR MAC OS X UPDATE#

#MYSQL DOWNLOAD FOR MAC OS X INSTALL#

Lets move now to install MySql database server on Mac OS X. If the request is still going to the Internet, try flushing your DNS cache using command dscacheutil -flushcache. Just put a simple HTML file (abc.html) in the server directory and try to access it in the browser. Our virtual hosts setup is done now, just restart the apache with command apachectl restart Pankajs-MacBook-Pro:~ root# vi /etc/hosts The next thing we need to do is add the server URL to known hosts file, else it will go to DNS server and the request will be redirected to Internet rather than loading it from the local machine. The Directory directive is added to avoid any permission issues. Make sure to change the DocumentRoot, ServerName and Directory location according to your needs. ServerAlias ErrorLog "/private/var/log/apache2/-error_log"ĬustomLog "/private/var/log/apache2/-access_log" common Pankajs-MacBook-Pro:~ root# vi /etc/apache2/extra/nfĪdd following configuration for a new VirtualHost and save it.

mysql download for mac os x

We can proceed now to HTTPD virtual hosts file. Now when Apache will load the configuration file, it will also load the virtual hosts configuration file. Pankajs-MacBook-Pro:~ root# vi /etc/apache2/nf To enable VirtualHosts, we need to make some changes in Apache Configuration file (nf).

mysql download for mac os x

bash_profile: # MySQL_PATHĬtrl + x to exit then press “y” to save changes and enter to confirm file name.Default location for Apache web server project files is /Library/WebServer/Documents/ which is not a convenient place to keep our project files, also we will have to access it in browser with localhost, so I decided to create my own virtual host pointing to my development directory. Now we need to add this path to PATH, just type: $ cd MySQL is located at: $ ls /usr/local/mysql/bin You can take a look at that list by typing: $ echo $PATH Up until this point, MySQL has not yet been added to the path, we have to add the directory where MySQL resides to that list. If you type which php in your terminal you will get back its location: $ which php The path is a list of directories that Unix uses in order to locate programs on the machine that it can run. You don’t have to log in, just click “No thanks, just start my download”.įinish installation and set it up to be running on startup by going into your system preferences bottom line and clicking on MySQL icon, you will get a default password, save it, you will need it later. Here you can configure your time zone and other settings, just type: sudo nano 99-liip-developer.ini For the CGI and CLI versions, it happens on every invocation. For the server module versions of PHP, this happens only once when the web server is started. The configuration file ( php.ini) is read when PHP starts up. Uncomment the following line (remove #): LoadModule php5_module libexec/apache2/libphp5.so Enable PHPĬd into Documents: cd /Library/WebServer/Documents/Ĭd into apache directory: cd /etc/apache2/

#MYSQL DOWNLOAD FOR MAC OS X UPDATE#

Whatever is the current version of your PHP, go ahead and update it here.

#MYSQL DOWNLOAD FOR MAC OS X MAC OSX#

Mac OSX 10.8 comes with PHP 5.2 by default, in order to check what version you currently have just type php -v. Then to give apache permissions to read we type sudo chmod 644 nf and press enter, lastly we type sudo apachectl restart Press “Ctrl + x” to exit, “y” to save changes and hit enter.

mysql download for mac os x

Type ls and check if you have a config file named after your nf username, if you can’t find one, that’s ok, then just type sudo nano nf Sudo apachectl restart Setting up root directoryĪpache’s default directory is /Library/WebServer/Documents that is where ` It work’s!` file is located at. You can start, stop, and restart your server by typing: sudo apachectl start If you see “It works!” apache is running. Verify if apache is running by accessing If you get “This site can’t be reached”, you need to start apache, just type, sudo apachectl start and press enter: To check what version of apache you have currently installed on your mac just open you terminal and type httpd -v To create a local web server, all you need to do is configure Apache and install MySQL.








Mysql download for mac os x