1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PhpMyAdmin: How Do You Set Foreign Keys?

Discussion in 'MySQL' started by Masterful, Oct 2, 2008.

  1. #1
    How do you set foreign keys with PhpMyAdmin?

    I know the tables must be INNODB. And I read somewhere that the columns which will be used as foreign keys must be indexes. Is that true? If so, must these columns be made indexes on the child or parent table?

    Basically, I'm completely confused. If you know, please explain clearly, and I'll add some points to your account.
     
    Masterful, Oct 2, 2008 IP
  2. Masterful

    Masterful Well-Known Member

    Messages:
    1,653
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Masterful, Oct 2, 2008 IP
  3. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #3
    If you're looking for an easier way to manage a mysql DB try navicat. It makes managing a DB so much easier than phpmyadmin. You can see the exact foreign key relationships with every table as well as managing stored procedures, views, backups, and everything else.
     
    jestep, Oct 2, 2008 IP
    Masterful likes this.
  4. Masterful

    Masterful Well-Known Member

    Messages:
    1,653
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    140
    #4
    Thanks for the advice. Sounds good . . . I might have to try it.
     
    Masterful, Oct 2, 2008 IP