The install of MySQL I’m using, from, in order to not conflict with Apple’s MySQL, puts the socket at /tmp/mysql.sock. I remembered that Mac OS X Server’s MySQL install puts the socket for communicating with MySQL at /var/mysql/mysql.sock. Happily it had left my configuration that enabled the PHP 5 module in place. It put a new in place in case I Apache wanted to use an more up to date Apache configuration. The Lion upgrade process left my Apache config alone, so my virtual host was still intact and working. In /Users/taz/Sites/smartwebdeveloper/wp-includes/wp-db.php (trying to connect via unix:///var/mysql/mysql.sock) It turns out WordPress / PHP could not connect to the MySQL database on my Mac running Lion: Warning: mysql_connect() : In WordPress’s wp-config.php file, I set the WP_DEBUG constant to true to see what is going on: define('WP_DEBUG', true) Lion ships with PHP 5.3.6, the latest production release of PHP. It’s a WordPress site, using both PHP and MySQL. I’d just get an empty webpage when I went to the website. If you found this article useful, please link to it from your website or blog, click the Like or +1 button to help others find this page.Īfter installing Mac OS X Lion, I found the PHP site I use for development stopped working. If you have a question or comment about check disk size and free space on Mac, please use the comment form at the bottom of the page. Look at the “ Capacity” field for the disk’s size, and the “ Available” field for how much free space the disk has. A window will appear with information about the disk.Click the File menu at the top left of the screen.Click the disk once whose size or free space you want to find out. A list of disks connected to your computer will appear in a window, with some other items like “ Network“.Click Go at the top of the screen to open the Go menu. Click the menu item “ Computer“.The dock is the bar of icons, usually at the bottom of the screen, used to start programs. Go to Finder: Click the smiley blue Mac face at the left end of the Dock.Here’s an alternative method to find a disk’s size and free space on Lion that that works for removable disks and network drives: Get a disk's size and free space using "Get Info" on Mac OS X Lion The Snow Leopard method I use doesn’t work either – in Lion, disks aren’t listed on the side of a Finder window as they are in Snow Leopard. The method above doesn’t work for removable hard drives on Lion. Get the Size of a Removable Hard Disk with Mac OS X Lion It might work with other permanently connected hard disks installed in your Mac – I haven’t tested this yet. It does not work with removable hard drives. This feature works with your main Mac hard disc, usually called “ Macintosh HD“. The display includes how much disk space is used for each of your music, movies, photos, apps, and backup files. An attractive window showing your free disk space will appear.Click the word Storage towards the top left of the window.
0 Comments
Leave a Reply. |