Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to get to know a database?

  1. #1
    denarced is offline Programmer
    Join Date
    Jul 2008
    Location
    Joensuu, Finland
    Posts
    182
    Rep Power
    0

    Question How to get to know a database?

    So I have this mysql database on my homeserver.
    I have to start developing the php-website which uses this database.

    No comments or documentation .. really messed up.

    Any tips on how to get started ?
    Anything on how to understand the database structure ? Something to make it graphical or .. (just guessing now)

    Anything really..

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: How to get to know a database?

    You can use phpMyAdmin for database management. It is a web-based database administration tool and is really easy to use. As for getting to know MySQL, I suggest picking up a book and reading tutorials on the web. I've got MySQL 5.0 Certification Study Guide which isn't a bad book at all (although a bit boring).

  4. #3
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: How to get to know a database?

    To start with, do you know SQL? That's that first place you have to go. If you're looking for a graphical interface, that suggests to me that you don't know how to interact with a database other than Access (which is junk).
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  5. #4
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: How to get to know a database?

    No book comes close to good old fashion practice imo!

  6. #5
    Jordan Guest

    Re: How to get to know a database?

    I agree but you must first learn how to practice.

  7. #6
    denarced is offline Programmer
    Join Date
    Jul 2008
    Location
    Joensuu, Finland
    Posts
    182
    Rep Power
    0

    Re: How to get to know a database?

    ok
    so the following I have some knowledge of: SQL, phpMyadmin and PHP

    My actual problem is that the database is huge(a few dozen tables)
    Since I wanna learn how the db is built, I thought there propably is a better way then just go though every table and make the connections as I go .. huge job

  8. #7
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: How to get to know a database?

    I would start with a list of tables and fields. Once that is done, you can look at sample data to get an idea of how everything hooks together. Usually field/table names will be a big clue.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  9. #8
    denarced is offline Programmer
    Join Date
    Jul 2008
    Location
    Joensuu, Finland
    Posts
    182
    Rep Power
    0

    Re: How to get to know a database?

    Quote Originally Posted by WingedPanther View Post
    I would start with a list of tables and fields. Once that is done, you can look at sample data to get an idea of how everything hooks together. Usually field/table names will be a big clue.
    You wouldn't happen to know any handy way of listing them .. in mysql console or with php or whatever ..

  10. #9
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: How to get to know a database?

    List all the tables, in that query for each table query and get 1 row from there and print it out and see the design or something

    Code:
    <?PHP
    //CONNECT HERE!!
    $query mysql_query("SHOW TABLES");
    while(
    $row=mysql_fetch_assoc($query)) {
        
    $one array_pop($row);
        
    $q mysql_query("SELECT * FROM `$one` LIMIT 1") or die (mysql_error());
        while(
    $r=mysql_fetch_assoc($q)) {
            
    $s .= "<hr>".$one."<br />";
            
    $s .=print_r($rtrue);
        }
    }
    ?>
    <pre><?=$s?></pre>

  11. #10
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: How to get to know a database?

    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SQL database tables for rental database
    By Roger in forum Database & Database Programming
    Replies: 4
    Last Post: 08-23-2010, 05:07 PM
  2. uploading database records in the access database in vb.net
    By Diana86 in forum Visual Basic Programming
    Replies: 0
    Last Post: 11-20-2008, 10:50 PM
  3. C# with SQL database
    By Siten0308 in forum C# Programming
    Replies: 6
    Last Post: 06-24-2008, 07:33 AM
  4. C# with SQL database
    By Siten0308 in forum C# Programming
    Replies: 4
    Last Post: 06-24-2008, 05:11 AM
  5. Database and Database Users
    By DevilsCharm in forum Database & Database Programming
    Replies: 2
    Last Post: 08-27-2006, 08:22 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts