Français
  • PHP Tutorial - 26 - Testing the Database Connection


    Added on Sunday 19 October 2008 17:15:06
    by thenewboston
    65303 Views
    4.9 / 5
    12345
    173 rates
    Send this video to your friends
    Get embed code of video

    http://www.youtube.com/watch?v=VLrtBF2wVgk&fmt=18

    Watch this tutorial in high def there!

    http://thenewboston.com



    facebook
  • Write your comment here...
  • ITSplit

    @jillheden thank you for the answer but... 000webhost says: "Important: MySQL Host for any database in this account is mysql6.000webhost... , do not use localhost!" I'dont understand, because I'm new here :(
    Tuesday 07 February 2012 21:00:16
  • jillheden

    @ITSplit Try not to use "local" as sql host
    Tuesday 07 February 2012 14:48:39
  • peleciss

    thenewboston, the best video book of php tuts :], gj bucky
    Saturday 04 February 2012 15:52:43
  • SMR513

    Thanks for the great tutorials. I am hoping you upload the next vid for PHP tutorial mysql 27. I would like to see the form in action, adding new users and logins and such. Thanks man!
    Thursday 19 January 2012 09:11:03
  • ITSplit

    Hi, i hope you see this. I become this: "Warning: mysql_connect() [function.mysql-connect]: Access denied for user..." but I follow you step by step and I check all few times. I'm on 000webhost. Please help!
    Saturday 14 January 2012 13:04:26
  • ramchandrasingh1

    how to data base connectivity in php
    Thursday 29 December 2011 12:20:10
  • bluedude34

    4:42
    Monday 19 December 2011 21:37:13
  • TheBoomshae

    @GrettyBoyCustoms I am getting that too. Did you ever find the problem?
    Saturday 17 December 2011 14:00:35
  • winPGRM

    @MrRedhydra LMAO. Fuck, that's so funny.
    Sunday 13 November 2011 14:59:23
  • GrettyBoyCustoms

    Warning: mysql_connect() [function.mysql-connect]: [2002] No connection could be made because the target machine actively refused it. (trying to connect via tcp://localhost:3306) in C:\xampp\htdocs\connectionfile.php on line 3 Warning: mysql_connect() [function.mysql-connect]: No connection could be made because the target machine actively refused it. in C:\xampp\htdocs\connectionfile.php on line 3 Not Connected :No connection could be made because the target machine actively refused it. ?????
    Friday 11 November 2011 17:24:56
  • jwalter007

    @jwalter007 I got it working. I had to name my database game1. For some reason game would not show up as a database. So when i entered the update string I was using my database nae of game1 instead of table name of game. Im all set now :-)
    Monday 07 November 2011 13:12:12
  • jwalter007

    I'm not getting the update. No errors, but no update. I put in some bad info for the open & select commands just to test & did get errors. So I know its talking to the correct database. I checked the $query line for typos & had non. Any idea why its not updating?
    Monday 07 November 2011 09:19:06
  • jwalter007

    @carpenter2karli Im looking for an answer to that as well.
    Sunday 06 November 2011 09:18:14
  • carpenter2karli

    i dont know how to set database permission on 000webhost! can sb help me?
    Sunday 06 November 2011 01:47:27
  • psntanner11man

    I DIDZ IT
    Sunday 30 October 2011 23:11:53
  • goperoful

    I've never been so happy seeing a blank screen. Thanks bucky!
    Monday 24 October 2011 16:04:41
  • lesstalkmorerock99

    so, I am a noob, I was getting a similar warning that many of you are getting. Spent three hours obsessing about it...found out that when I was creating privaleges for "bucky" i didn't designate "localhost" and instead it was using "%" when i fixed this, the error went away. Hope this helps. Thanks BTW @thenewboston you've been a lot of help!
    Tuesday 18 October 2011 16:37:35
  • MCXinito95

    Why is my acces denied?
    Tuesday 11 October 2011 12:59:07
  • JKTCGMV13

    My programming teacher hates you. That's a good thing.
    Thursday 29 September 2011 01:06:47
  • katzblubird

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user ' mobiafri_mercy'@'localhost' (using password: YES) in /home/mobiafri/public_html/conectionfile.php on line 14 Could not connect: Access denied for user ' mobiafri_mercy'@'localhost' (using password: YES) How do i solve this error?
    Sunday 18 September 2011 15:53:21
  • Macuspantricidad

    Thank you very much dude
    Monday 12 September 2011 17:51:56
  • Macuspantricidad

    Thank you very much dude
    Monday 12 September 2011 17:51:54
  • eternyman

    @eternyman $dbc=mysql_connect('localhost','a9844771_user','correctpassword'); if (!$dbc){ die('Ni povezano:( :' . mysql_error()); }
    Thursday 04 August 2011 06:48:27
  • eternyman

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a9844771_user'@'localhost' (using password: YES) in /home/a9844771/public_html/sql.php on line 3 Free Web Hosting Ni povezano:( :Access denied for user 'a9844771_user'@'localhost' (using password: YES) :(( whyyy
    Thursday 04 August 2011 06:46:45
  • krishnankuta

    well i hav a few doubts pls some1 help me in it....while trying the above i got this error: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'username'@'localhost' (using password: YES) in D:\xampp\htdocs\connectionfile.php on line 10 Not Connected:Access denied for user 'username'@'localhost' (using password: YES) wht's the prob? & my 2nd question is it necessary to try this @domain hosted...cant it be done on localhost.is this y im getting error?
    Thursday 28 July 2011 10:15:48
ADVERTISEMENT
Supplements
Social Network
Tag cloud