Silly mysql+php install question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rowan
    Too lazy to set a custom title
    • Mar 2002
    • 17393

    #1

    Silly mysql+php install question

    Is it possible to install PHP with mysql without needing to install the entire mysql server suite? I've seen lots of complaints about this in the past, just wondering if it's still a current issue.

    Bit like installing a petrol station in your front yard when you only fill up once a week.
  • mike-al
    Confirmed User
    • Aug 2007
    • 691

    #2
    php is php and mysql is mysql, if anything you install php + mysql driver
    Delete this account, i am done here

    Comment

    • rowan
      Too lazy to set a custom title
      • Mar 2002
      • 17393

      #3
      Uh, what? The issue I'm talking about is that you have to install the whole mysql server in order to be able to use its client with PHP.

      Comment

      • TripleXPrint
        Confirmed User
        • Apr 2007
        • 983

        #4
        Are you installing it for Linux or Windows?

        They have the installs pre-canned and should be the most current versions. Just do a Google search for LAMP (Linux) or WAMP (Windows). I would highly recommend going with LAMP.

        If you're installing on your server then you can use localhost as your sql server instead of mysql.yourdomain.com as the database path.
        Skype: Triplexprint

        Comment

        • chelo - adultcopywriters
          Confirmed User
          • Feb 2008
          • 775

          #5
          If you want your page to vbe dynamic and you want to test it locally, you have no choice but to install the mysql server, and I bet that you do.

          To be honest I haven't heard any complaints about it. =)
          Last edited by chelo - adultcopywriters; 05-28-2008, 08:50 AM.

          Comment

          • rowan
            Too lazy to set a custom title
            • Mar 2002
            • 17393

            #6
            It's under FreeBSD, and the server is not local. That's the whole problem, I have to compile the entire server in order to install the client libraries for PHP to compile in.

            It's not a biggie, just wondering if there's a more efficient way of doing it (ie just compiling the client library)

            Comment

            • mrkris
              Confirmed User
              • May 2005
              • 2737

              #7
              It depends on the distribution you are using. Most allow you to just install the client.

              PHP-MySQL-Rails | ICQ: 342500546

              Comment

              • CS-Jay
                Confirmed User
                • Oct 2003
                • 1794

                #8
                you just have to do a ./configure and add in mysql commands. most php install come with mysql already tied into it though. do a echo phpinfo(); and see if there is anything about mysql on it.
                I do stuff - aIm CS_Jay_D

                Comment

                • rowan
                  Too lazy to set a custom title
                  • Mar 2002
                  • 17393

                  #9
                  Originally posted by mrkris
                  It depends on the distribution you are using. Most allow you to just install the client.
                  Which app dist do you mean? I'm using PHP 5.2.6, mysql 5.0.51b. Both compiled from source.

                  Comment

                  • mrkris
                    Confirmed User
                    • May 2005
                    • 2737

                    #10
                    Originally posted by rowan
                    Which app dist do you mean? I'm using PHP 5.2.6, mysql 5.0.51b. Both compiled from source.
                    Sorry, meant distribution of linux. As for compiling from source, that's silly as most have package management systems that are pretty up to date.

                    PHP-MySQL-Rails | ICQ: 342500546

                    Comment

                    • rowan
                      Too lazy to set a custom title
                      • Mar 2002
                      • 17393

                      #11
                      Originally posted by mrkris
                      Sorry, meant distribution of linux. As for compiling from source, that's silly as most have package management systems that are pretty up to date.
                      I prefer to see what options I'm actually compiling in rather than see a bunch of configure stuff fly past too fast to read as it compiles what the maintainer has decided is best. It only takes about 5 minutes to compile mysql, php and apache from source.

                      Comment

                      • onezero
                        Registered User
                        • Oct 2007
                        • 40

                        #12
                        Use that compile option:
                        --without-server Only build the client.
                        OneZero Hosting - We're a perfect 10 when it comes to your hosting and Internet needs!
                        To us every last customer and every server also rates a perfect ten!
                        IM (xmpp): [email protected], http://onezerohosting.com, [email protected]

                        Comment

                        • rowan
                          Too lazy to set a custom title
                          • Mar 2002
                          • 17393

                          #13
                          Originally posted by onezero
                          Use that compile option:
                          --without-server Only build the client.
                          Aha! Thank you very much! Knew it had to be something simple.

                          Comment

                          • Vicious Adult
                            Registered User
                            • Dec 2007
                            • 9

                            #14
                            you could always use the binary installer, pkg_add -r mysql5

                            Comment

                            • brandonstills
                              Confirmed User
                              • Dec 2007
                              • 1964

                              #15
                              You can install all of that in 1 executable. Look for the easy distros. SqlLite is easy to install and extremely small. Not sure how easy it is to get it to work in PHP though.

                              Brandon Stills
                              Industry and programming veteran
                              [email protected] | skype: brandonstills | ICQ #495-171-318

                              Comment

                              • react
                                Confirmed User
                                • Sep 2003
                                • 673

                                #16
                                If you are manually compiling from source chances are you are doing something wrong to begin with.

                                The FreeBSD port sytem separates client and server:

                                /usr/ports/databases/mysql50-client
                                /usr/ports/databases/mysql50-server
                                Last edited by react; 05-28-2008, 06:27 PM.
                                --
                                react

                                Comment

                                Working...