PHP and mySQL question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheSenator
    Too lazy to set a custom title
    • Feb 2003
    • 13330

    #1

    PHP and mySQL question

    How do I find out what version I have of PHP and mySQL?
    I am running on Apache/1.3.27 on Linux...


    Thanks
    ISeekGirls.com since 2005
  • Butrflied
    Confirmed User
    • Aug 2002
    • 1344

    #2
    echo phpversion(); and I think echo mysql_get_server_info(); will get you mysql version
    Last edited by Butrflied; 01-26-2004, 06:35 PM.
    ~Butrflied~

    Comment

    • TheSenator
      Too lazy to set a custom title
      • Feb 2003
      • 13330

      #3
      didn't work
      ISeekGirls.com since 2005

      Comment

      • Butrflied
        Confirmed User
        • Aug 2002
        • 1344

        #4
        are you trying to get them from the command line or from a php page?
        ~Butrflied~

        Comment

        • lennox
          Registered User
          • Jan 2004
          • 144

          #5
          its phpinfo();

          Comment

          • Butrflied
            Confirmed User
            • Aug 2002
            • 1344

            #6
            from the command line :
            > php -v
            > mysql -V

            .. I think
            ~Butrflied~

            Comment

            • Damian_Maxcash
              So Fucking Banned
              • Oct 2002
              • 12745

              #7
              make a php file with

              /?
              phpinfo();
              ?\

              and just load it in your browser

              Gives you LOADS of info about your install

              Edit: replace / and \ with < and >

              Comment

              • TheSenator
                Too lazy to set a custom title
                • Feb 2003
                • 13330

                #8
                I am using command line....

                How do I turn on mySQL?

                or is it always on?
                ISeekGirls.com since 2005

                Comment

                • toddler
                  Confirmed User
                  • Jun 2002
                  • 1911

                  #9
                  I strongly advise you go read some books. Or hire someone.
                  http://www.flickr.com/photos/zoddler/

                  Comment

                  • TheSenator
                    Too lazy to set a custom title
                    • Feb 2003
                    • 13330

                    #10
                    I am reading...

                    It is a common problem but a bitch to fix.....

                    can't connect "mysql.sock"

                    I am busted out the Coke and figuring this one out by sunrise...
                    ISeekGirls.com since 2005

                    Comment

                    • fuzebox
                      making it rain
                      • Oct 2003
                      • 22367

                      #11
                      Originally posted by TheSenator
                      I am busted out the Coke and figuring this one out by sunrise...


                      Try starting your mysql server

                      Comment

                      • kongen
                        Confirmed User
                        • May 2002
                        • 110

                        #12
                        How do I turn on mySQL?
                        Depends on many things, but try this for start:

                        /etc/rc.d/init.d/mysqld start

                        Comment

                        Working...