Announcement

Collapse
No announcement yet.

simple MYSQL connection

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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


      • #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


        • #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


          • #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


            • #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


              • #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


                • #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


                  • #10
                    Re: simple MYSQL connection

                    10x

                    Comment


                    • #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


                      • #12
                        Re: simple MYSQL connection

                        hehehe

                        10=than x=ks

                        ==

                        thanks

                        Comment


                        • #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


                          • #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


                            • #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