Wednesday, October 3, 2007

Pip & My Sequel Trouble


PHP


MySQL

Ok, it's actually PHP 4.4.7 and MySQL 5.0.x!

On my Mac Mini (Intel) I've got Mac OS X 10.4.10 and it comes with it's own Apache Server, in fact all Mac OSX distributions have Apache built in.

I don't remember, but apparently sometime I had installed PHP 4.4.7 and PHP 5 (to use both) I wanted to get MySQL on it because I wanted to start developing some serious web stuff locally...

Since the unfortunate total disappearance a month ago of the last web host I had used... and subsequently lost everything I was working on because I was developing it on their server(s) -- Bad mistake: Not backing anything up just because I didn't have MySQL!

So I got the latest MySQL 5.0.45 release for Mac OS X in the easy installer package format.


PHPMyAdmin

I proceeded to install it and checked to see if it worked with PHP 5 using PHPMyAdmin.

AND... Giddy it worked!

Now I go into the Terminal.app Unix Shell Application and type:

sudo cp /etc/httpd/php4.httpd.conf /etc/httpd/httpd.conf

Switch to PHP 4 and reload the PHPMyAdmin... And I'm Greeted with:

Error

MySQL said:

#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)

What On Earth!!

I have no idea what that really means...

So I spent the good part of four days researching and trying a bunch of crap to get it to work... by changing the php.ini file by changing the line...

; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =

TO:

; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =/tmp/mysql.sock

Restart the Apache Server and try to reload PHPMyAdmin...

And to no avail I still see...

Error

MySQL said:

#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)

So after taking a break and coming back I think of linking the mysql socket to where PHP 4 is looking for it....

mysql

MySQL Supportenabled
Active Persistent Links 0
Active Links 0
Client API version 4.1.22
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient

... In... /var/mysql/mysql.sock

And The info for PHP 5, which works with MySQL is:

mysql

MySQL Supportenabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.19
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/php5/include/mysql
MYSQL_LIBS -L/usr/local/php5/lib/mysql -lmysqlclient

So why not create an alias linking /var/mysql/mysql.sock to /tmp/mysql.sock

Not being so fluent in Unix Command-Line stuff, I struggled to figure out how to do this and found this site... Here's what I did (the clean and easy to follow version):

  1. Create 'mysql' folder in /var/
  2. Create A Link Of /tmp/mysql.sock As /var/mysql/mysql.sock
  3. Restart The Apache Server

The Commands:

$ sudo mkdir /var/mysql/
$ sudo ln /tmp/mysql.sock /var/mysql/mysql.sock
$ sudo apachectl graceful
/usr/sbin/apachectl graceful: httpd gracefully restarted

And ooh-la-la it works!

Sure it's probably a bit unorthadox, and PHP 4 only has Client API for 4.1.22... but MySQL doesn't change much on the front-end I'm assuming so it should be pretty good.

Everything was confirmed working after creating and editing the same table in MySQL 5 using PHP 4 and PHP 5

Update:

It has come to my attention that though the above may work... it may not work as well as it should...

Because I've run into the instance where the link I would create using $ sudo ln /tmp/mysql.sock /var/mysql/mysql.sock would disappear from /var/mysql/mysql.sock when switching from PHP 4 to PHP 5 and back to PHP 4 again after I restart somewhere in between I think.

I'm not sure where it is breaking down... but there's a couple more robust solutions that I'd suggest... and that is to change the standard link using the ln command to a symbolic link using the ln -s command in terminal.

So now the commands would now be:

$ sudo mkdir /var/mysql/
$ sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
$ sudo apachectl graceful
/usr/sbin/apachectl graceful: httpd gracefully restarted

Or you can do what I did, and just make the folder /var/mysql a symbolic link... which is a little less work:

$ sudo ln -s /tmp/ /var/mysql/
$ sudo apachectl graceful
/usr/sbin/apachectl graceful: httpd gracefully restarted

Note: if you want to do the above there can't be a folder /var/mysql/ already, you'll need to delete it. This can be done using:

$ rm -r /var/mysql/

These commands should work better because of the difference between a hard link and a symbolic link...

A hard link (ln) disappears if the linked-to file disappears... and a symbolic link (ln -s) remains even if the linked-to file disappears and for this situation is what we need since mysql.sock seems to disappear somewhere along the lines of a restart or as described above.

Plus, since symbolic links allow you to have a folder point to another destination folder you can do $ sudo ln -s /tmp/ /var/mysql/

Disclaimer: I take no responsibility for what happens to your system if you use these instructions. Though I have been able to use this methods successfully your results may vary. It is highly advisable you backup any files before changing or modifying them.

Permalink/TrackBack:
http://bvanscoter.blogspot.com/2007/10/pip-my-sequel-trouble.html

What's With It... I Get It

This post is going back on some things that I came across quite some some ago. I was going to post it then, but never found the time... and since I'm catching up on some posts, I thought "Why not just put it in here now?" - so here goes:

In this post we have to go back to like the 3rd week in August (I told you it was long ago)...

It was then that I came across and read this post by this girl.... If you don't want to check it out it is basically the lyrics for Chevelle's song I Get It "because it's stuck in [their] head".

The lyrics that she posted weren't anywhere near all that correct... I've got her version and the actual version of the lyrics side-to-side with the differences highlighted:

Actual Lyrics

So You Say You're Ignored
As It Is
Well Give Us Your Sad, Sad Trip

You're Right, I Get It
It All Makes Sense, You're The Perfect Person
So Right, So Wrong
Let's All Live In Your Imaginary Life

Assumed It's Whether We're Right Or Wrong
We're Doomed
And There's Plenty
For All

How Dare You Catch Me Counting
How Dare You Call At All
How Dare You Call This Suffering
How Dare You Call At All

You're Right, I Get It
It All Makes Sense, You're The Perfect Person
So Right, So Wrong
Let's All Live In Your Imaginary Life

Press On
These Tannins
They Double In Time
The Touch Of Life
Once Failed To Mention So Far

Of Course The Law Is Fountains
Of Face To Face Remorse
A Fast And Restless Blackmail
Like Pent Up Fetish Force
 

You're Right, I Get It
It All Makes Sense, You're The Perfect Person
So Right, So Wrong
Let's All Live In Your Imaginary Life

Do You Want It Enough
Do You Want It At All
Should You Need It All
Takes A Minute To See
Do You Want It Enough
Do You Want It At All
Should You Need It At All
Do You Want It Or Not

You're Right, I Get It
It All Makes Sense, You're The Perfect Person
So Right, So Wrong
Let's All Live In Your Imaginary Life

Life, Life, Life

Her Lyrics

So You Say I Make A Man
As It Is,
Well, Give Us Your Sad, Sad Trip

You're Right, I Get It
It All Makes Sense, You're The Perfect Person
So Right, So Wrong
Let's All Live In Your Imaginary Life

Assumed It's Weather
We're Right, I'm Wrong
We're Doomed, And There's Plenty For All
 

How Dare You Catch Me Counting
How Dare You Call It Off
How Dare You Call It Suffering
How Dare You Call It Off

You're Right, I Get It
It All Makes Sense, You're The Perfect Person
So Right, So Wrong
Let's All Live In Your Imaginary Life

Dress All These Turings
They're Doubled In Time
The Touch Of Life, What's Failed To Mention So Far
 
 

Of Course The Lionous Fountains
Or Face The Face We've Mauled
Of Fast And Restless Blackmail
Like Pent-up Vanished Falls

You're Right, I Get It
It All Makes Sense, You're The Perfect Person
So Right, So Wrong
Let's All Live In Your Imaginary Life

Do You Want Enough?
Do You Want It All?
Should You Need It At All?
Takes A Man To See
Do You Want Enough?
Do You Want It All?
Should You Need It At All?
Do You Want It Or Not?

You're Right, I Get It
It All Makes Sense, You're The Perfect Person
So Right, So Wrong
Let's All Live In Your Imaginary Life

Life, Life, Life.


Now, I can't say if she got the lyrics from somewhere else, or just 'made them up,' but seriously let's try to get them right the next time.

That's not what I'm really writing about...

As it turns out that there's this real terrible [female] DJ that works at the Zone at the late-night hours... did I mention she's annoying...

Well at work during breakdown, only a couple days after reading the post above, she said something like "Chevelle has a new single called I Get It and I'm going to play it now because it's stuck in my head, and you know what it's like when you get something stuck in your head..." blah-biddy-blah-blah, Right?

So I've been sorta wondering...

What Is It With Women And This Song?!!

Honestly that's two chicks (in the same geographical area nonetheless) that had it stuck in their head -- I don't recall it being on the radio that much... though I live a totally opposite day than everyone else (nor do I really care to listen to the radio -- especially Rochester's crappy 'rock' stations)!

Is it because this song so deeply resonates with women that live in their own little fairy-tale imaginary lives apart from reality that they get this song stuck in their head.

Or that this song strikes so much at the truth that women have this predisposition to think that they're always right (perhaps even - no matter what) and everyone should acknowledge it in them.

What's With It?

Permalink/TrackBack:
http://bvanscoter.blogspot.com/2007/10/what-with-it-i-get-it.html

Chevelle's Set List (Sept. 4)

I forgot to post this in the post about the Chevelle Concert.

So I guess I'll just stick it here, in a new post... the songs that Chevelle played in the concert I went to... in proper order (or so Keith thinks too):

  1. Antisaint [Vena Sera]
  2. Brainiac [Vena Sera]
  3. Vitamin R [This Type Of Thinking]
  4. Sleepwalking Elite*
  5. Closure [Wonder What's Next]
  6. Comfortable Liar [Wonder What's Next]
  7. The Red [Wonder What's Next]
  8. SMA [Point #1]
  9. Saturdays [Vena Sera]
  10. Get Some [This Type Of Thinking]
  11. Straight Jacket Fashion [Vena Sera]
  12. Well Enough Alone [Vena Sera]
  13. I Get It [Vena Sera]
  14. Clincher [This Type Of Thinking]
  15. Send the Pain Below [Wonder What's Next]
  16. Forfeit [Wonder What's Next]

* Chevelle actually played Sleepwalking Elite!!

For those of you that haven't heard it, it is an amazing song, I got it as a bonus track on my Vena Sera CD:


Vena Sera

Which actually included two demos, Sleepwalking Elite and Delivery. But Sleepwalking Elite is definitely an amazing demo.

I might be so bold as to predict that this will be one of the songs on their next CD they put out, if not their single -- if I'm bold enough to predict.

Permalink/TrackBack:
http://bvanscoter.blogspot.com/2007/10/chevelle-set-list-sept-4.html

Chevelle Concert (Sept. 4)

So a while back I went to this Chevelle concert.

And when I got back:

  • I had no voice....
  • I had a constant ringing in my ears!
  • And I came back liking Chevelle even more!

I was probably a wreck when I got back! I was so tired that I crashed right away... I barely made it home.

Keith went with me and as he can vouch, he probably wondered if I was going to fall asleep driving back or drive off the road.

(I inadvertently switched lanes several times because I was so tired and could barely keep my eyes open... Thank God for the Doritos I brought, once I started munching on them I was able to stay awake better!)

Now back to the concert -- here are some of my comments and what I thought about it...

Ok, so the first opening band at the concert was 2 Cents [myspace | Amazon] they were a pretty heavy and energetic opening band.

Perhaps they were better live than I had initially perceived they would have been though I really didn't like their profanity.

But I think the fact that makes up for it is that they played their song Victims of Pop Culture that goes "pop music is the enemy..." and bashed a lot of those crappy little bands that really suck. Check out the last question in this interview to discover the meaning!

The second opener for Chevelle then was Fair To Midland [myspace | Amazon] who definitely had an interesting, and very light sound to them - even live.

Fair To Midland was very predictable in their music, like you can tell when they would jam out and then instantly stop and start again. And, beyond just that all their songs sounded pretty much the same!

So much so to the point that you started to ask yourself "didn't they just play this song?" - not that cool.

I'm perhaps surprised that though I thought I would have liked Fair To Midland more than I actually did after seeing them live... and what didn't help them was that the lead singer when 'dancing' would pretty much spaz-out on the stage as if ceasing in an upright position.

So as it turns out I liked 2Cents more than I liked Fair To Midland (minus their profanity).

And now we're up to Chevelle [myspace | Amazon] the headlining band. That have been touring for their new record...


Vena Sera

And their most recent single from the CD I Get It.

There are a lot of great things to say about them this concert.

It seems that everyone in the band just seemed to have more fun at this concert than at the last concert I saw with them, especially Dean:

They played a lot more of their older songs from Wonder What's Next and some from Point #1. And with a lot of the songs it seemed that Dean and even Pete would add a little extra to their playing, adding an extra chord and changing the sound / music a little.

As a whole they interacted a lot more and better with the audience! And they actually smiled and messed around with each other on stage, it was definitely a great concert!!

Even though Magic City Music Hall had a terrible sound and speaker set up that made it sound pretty crappy if you were right in front of the stage -- but it was still a great concert (you can't hold that against Chevelle or the other bands)!!

Permalink/TrackBack:
http://bvanscoter.blogspot.com/2007/10/chevelle-concert-sept-4.html

 

pages

legal information

privacy policy

We respect your privacy and promise to never sell, barter, share or rent your information to any unauthorized third party. By providing your contact information you are also requesting and agreeing to receive important information about future events. (You may unsubscribe at any time.)
view full privacy policy here

certification of authenticity

I certify that the information contained on this site is true and complete to the best of my knowledge and understanding, any discrepencies will be governed by the terms of use.

terms of use

Everything we provide is provided "as is" including but not limited to the implied warranties of merchantability or fitness for a particular purpose, without any promise or guarantee of earnings. All forward looking statements on any of our materials are intended as an expression our opinion and will not responsible for any incidental or consequential damages from your actions.
view official terms of use