How do i build this table in phpmyadmin?

Discussion in 'Databases' started by pedigreechump6, Feb 3, 2007.

  1. #1
    I've got a script that I want to install on my site and the instructions are clear apart from this bit:


    3. Create a table in your database named weather_xml with the following structure:

    CREATE TABLE `weather_xml` (
    `xml_url` varchar(150) NOT NULL default '',
    `xml_data` text NOT NULL,
    `last_updated` datetime NOT NULL default '0000-00-00 00:00:00',
    KEY `xml_url` (`xml_url`)
    ) TYPE=MyISAM;


    How do I build this table in phpmyadmin?

    Thanks
     
    pedigreechump6, Feb 3, 2007 IP
  2. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #2
    Try pasting that piece of code in the query box and click "go".
    Click the "sql" tab to see the query box.
    Bye :)
     
    JEET, Feb 3, 2007 IP
  3. Jeff Andersen

    Jeff Andersen Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    that's exactly it. Just make sure you're viewing the DB you want to add the table to, click the SQL tab, paste that in the box click go and you should be good to go.
     
    Jeff Andersen, Feb 3, 2007 IP
  4. vic_msn

    vic_msn Well-Known Member

    Messages:
    2,233
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    155
    #4
    first you must create a database and then press the SQL tab and then paste this in the text area and then run it. I can do it for you If you want.
     
    vic_msn, Feb 3, 2007 IP
  5. eTIME

    eTIME Banned

    Messages:
    128
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    1st create database, then user name and password for that DB. then login to phpmyadmin area, select that database. and paste above query there and click go, then u will see table on left side "weather_xml".
     
    eTIME, Feb 3, 2007 IP
  6. nadeem3366

    nadeem3366 Member

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #6
    Hi pedigreechump6,

    if you want to install that script for table creation on your local server then just open your mysql and create a database of any name then open that database and click on "SQL" tab and paste that code and its done. you will see a table with named "weather_xml" under your created database.

    but if you want to install that script for table creation on your hosting server then first click on "My SQL databases" create database now open that database and do as i mentioned above, or if you have already your database then just open that database and install there.

    Have a Nice Day..

    .....Nadeem A.
     
    nadeem3366, Dec 7, 2010 IP
  7. jonnywartin

    jonnywartin Peon

    Messages:
    240
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Try to paste that code snippet in the query box and click "then go".
    Click the "sql" tab to see a box that question first try
    thank you ^ _ ^
     
    jonnywartin, Dec 11, 2010 IP