simple MYSQL connection

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • dannysheps@hotmail.com
    Second Lieutenant

    • Feb 2008
    • 138

    simple MYSQL connection

    Hello
    im trying to do a simple check up for a connection to my database through PHP script that looks like that :

    <?php mysql_connect("74.86.118.24
    ", "user", "password") or die(mysql_error()); echo "Connected to MySQL<br />"; ?>

    but it always answers :

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'dannydb '@'voda23.voda23.com' (using password: YES) in /home/rgajsgjb/public_html/test.php on line 5
    Access denied for user 'dannydb '@'voda23.voda23.com' (using password: YES)

    what didnt i do good ?

    *the user that i interd is the one i created with ABVFP

    my site is www.brasilwebdesign.com (the link in the center of the page)

    thanks
  • StrictlyBusiness
    Second Lieutenant

    • Nov 2007
    • 133

    #2
    Re: simple MYSQL connection

    Originally posted by dannysheps@hotmail.com View Post
    Hello
    im trying to do a simple check up for a connection to my database through PHP script that looks like that :

    <?php mysql_connect("74.86.118.24
    ", "user", "password") or die(mysql_error()); echo "Connected to MySQL<br />"; ?>

    but it always answers :

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'dannydb '@'voda23.voda23.com' (using password: YES) in /home/rgajsgjb/public_html/test.php on line 5
    Access denied for user 'dannydb '@'voda23.voda23.com' (using password: YES)

    what didnt i do good ?

    *the user that i interd is the one i created with ABVFP

    my site is www.brasilwebdesign.com (the link in the center of the page)

    thanks
    Hi Danny,
    I am not sure why you would want to access your database from your page. Will you be a little more specific as to what you are trying to accomplish please?
    Diane
    www.smallbizunite.net

    At first you don't succeed, pick yourself up and try again!

    Comment

    • dannysheps@hotmail.com
      Second Lieutenant

      • Feb 2008
      • 138

      #3
      Re: simple MYSQL connection

      in general
      can i access my database with a script like that at all ?

      or i can get access only from the Form way

      Comment

      • dannysheps@hotmail.com
        Second Lieutenant

        • Feb 2008
        • 138

        #4
        Re: simple MYSQL connection

        hi
        im trying to learn how to create a MYSQL PHP site
        that i can let people post messages on the site , it will be more of a donate stuff site

        so im trying to make the first step of quyering data from the database by connectiong to mysql

        Comment

        • StrictlyBusiness
          Second Lieutenant

          • Nov 2007
          • 133

          #5
          Re: simple MYSQL connection

          Originally posted by dannysheps@hotmail.com View Post
          in general
          can i access my database with a script like that at all ?

          or i can get access only from the Form way
          I am sure if you know how to set up scripts it may be possible but don't quote me on that.

          You can always access your phpmyadmin on cpanel and it will be safer there than to try to access your database from your website
          Diane
          www.smallbizunite.net

          At first you don't succeed, pick yourself up and try again!

          Comment

          • StrictlyBusiness
            Second Lieutenant

            • Nov 2007
            • 133

            #6
            Re: simple MYSQL connection

            Originally posted by dannysheps@hotmail.com View Post
            hi
            im trying to learn how to create a MYSQL PHP site
            that i can let people post messages on the site , it will be more of a donate stuff site

            so im trying to make the first step of quyering data from the database by connectiong to mysql

            Ok I understand. If you said you already set up a database using ABVFP then that is good enough right there. NavalDesign is the best to talk to about that.
            Diane
            www.smallbizunite.net

            At first you don't succeed, pick yourself up and try again!

            Comment

            • dannysheps@hotmail.com
              Second Lieutenant

              • Feb 2008
              • 138

              #7
              Re: simple MYSQL connection

              is there a way to contact navaldesign ?

              in general what is the password and user name i should inter ?

              *i have one that i created for the ABVFP and the regular user name for the CP

              Comment

              • StrictlyBusiness
                Second Lieutenant

                • Nov 2007
                • 133

                #8
                Re: simple MYSQL connection

                Originally posted by dannysheps@hotmail.com View Post
                is there a way to contact navaldesign ?

                in general what is the password and user name i should inter ?

                *i have one that i created for the ABVFP and the regular user name for the CP
                Yes there is. You may go to his website at http://www.dbtechnosystems.com

                You may also get your answers right there on his site. Contact him from there
                Diane
                www.smallbizunite.net

                At first you don't succeed, pick yourself up and try again!

                Comment

                • StrictlyBusiness
                  Second Lieutenant

                  • Nov 2007
                  • 133

                  #9
                  Re: simple MYSQL connection

                  The password and username is up to you. I couldn't answer that. When you go to cpanel and go to mysql database that part is left up to you what name you want your database to be as well as your username and password.
                  Diane
                  www.smallbizunite.net

                  At first you don't succeed, pick yourself up and try again!

                  Comment

                  • dannysheps@hotmail.com
                    Second Lieutenant

                    • Feb 2008
                    • 138

                    #10
                    Re: simple MYSQL connection

                    10x

                    Comment

                    • StrictlyBusiness
                      Second Lieutenant

                      • Nov 2007
                      • 133

                      #11
                      Re: simple MYSQL connection

                      Originally posted by dannysheps@hotmail.com View Post
                      10x
                      Is that how many times you've tried? Don't worry NavalDesign will get you in the right direction. Also check out this thread as to it may help you as well.

                      Diane
                      www.smallbizunite.net

                      At first you don't succeed, pick yourself up and try again!

                      Comment

                      • dannysheps@hotmail.com
                        Second Lieutenant

                        • Feb 2008
                        • 138

                        #12
                        Re: simple MYSQL connection

                        hehehe

                        10=than x=ks

                        ==

                        thanks

                        Comment

                        • StrictlyBusiness
                          Second Lieutenant

                          • Nov 2007
                          • 133

                          #13
                          Re: simple MYSQL connection

                          Originally posted by dannysheps@hotmail.com View Post
                          hehehe

                          10=than x=ks

                          ==

                          thanks

                          lol gotcha, you are welcome. Did that thread help you?
                          Diane
                          www.smallbizunite.net

                          At first you don't succeed, pick yourself up and try again!

                          Comment

                          • dannysheps@hotmail.com
                            Second Lieutenant

                            • Feb 2008
                            • 138

                            #14
                            Re: simple MYSQL connection

                            no man
                            its not realy the same matter...

                            my thing is just to get a simple connection to the MYSQL thats it....nothing more

                            but seems to be impossible yet

                            Comment

                            • StrictlyBusiness
                              Second Lieutenant

                              • Nov 2007
                              • 133

                              #15
                              Re: simple MYSQL connection

                              Actually it's WO man lol but sorry if that wasn't any help to you
                              Diane
                              www.smallbizunite.net

                              At first you don't succeed, pick yourself up and try again!

                              Comment

                              Working...
                              X