Professional Web Applications Themes

Folders within mysql database? - MySQL

Is it possible to have 'folders' within a mysql database that holds separate tables. I want to be able to have several sites from subdomains to access a single database but each site will need to access tables of the same name. Is the only way to do this to have a different database for each, as that would start to get expensive. Thanks...

  1. #1

    Default Folders within mysql database?

    Is it possible to have 'folders' within a mysql database that holds
    separate tables. I want to be able to have several sites from
    subdomains to access a single database but each site will need to
    access tables of the same name.
    Is the only way to do this to have a different database for each, as
    that would start to get expensive.

    Thanks

    chris_huh Guest

  2. #2

    Default Re: Folders within mysql database?

    chris_huh wrote: 

    Chris,

    No, sorry, MySQL doesn't support different schemas (as some other
    databases do). You need to have unique tables in your database.

    How about prefacing each table with some type of info, i.e. a subdomain
    name, then concatenating the subdomain name to your table name before
    you make the request?

    --
    ==================
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    net
    ==================
    Jerry Guest

  3. #3

    Default Re: Folders within mysql database?

    "chris_huh" <com> wrote:
     

    MySQL uses the term "database" (nowadays "schema") in an unusual way.
    But in fact MySQLs databases are exactly what you're looking for.
     

    Why?


    XL
    --
    Axel Schwenke, Senior Software Developer, MySQL AB

    Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
    MySQL User Forums: http://forums.mysql.com/
    Axel Guest

  4. #4

    Default Re: Folders within mysql database?

    On Wed, 15 Nov 2006 21:00:59 +0100, Axel Schwenke wrote: 
    >
    > MySQL uses the term "database" (nowadays "schema") in an unusual way.
    > But in fact MySQLs databases are exactly what you're looking for.

    >
    > Why?[/ref]

    Was wondering the same thing... IIRC, some RDBSs can only serve one
    database instance per running server group, but MySQL isn't one of them.

    --
    People who are willing to rely on the government to keep them safe are
    pretty much standing on Darwin's mat, pounding on the door, screaming,
    'Take me, take me!'
    -- Carl Jacobs in the Monastery
    Peter Guest

Similar Threads

  1. Accessing files/folders inside other application folders
    By jeffreyabe in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: March 19th, 01:57 AM
  2. using mySQL database for my PC
    By Raous in forum MySQL
    Replies: 3
    Last Post: November 12th, 07:28 AM
  3. Replies: 3
    Last Post: October 3rd, 07:54 AM
  4. MySQL Database not retrieving the full database
    By geetha.veeraiah@gmail.com in forum MySQL
    Replies: 4
    Last Post: July 21st, 09:34 PM
  5. Making folders and sub-folders and files NOT read-only
    By Joe Cocovich in forum Windows XP/2000/ME
    Replies: 3
    Last Post: July 3rd, 01:03 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139