Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 1st, 2012  |  syntax: None  |  size: 1.76 KB  |  hits: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. -- phpMyAdmin SQL Dump
  2. -- version 3.4.5
  3. -- http://www.phpmyadmin.net
  4. --
  5. -- Host: localhost
  6. -- Generation Time: Nov 17, 2011 at 12:01 PM
  7. -- Server version: 5.5.16
  8. -- PHP Version: 5.3.8
  9.  
  10. SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  11. SET time_zone = "+00:00";
  12.  
  13.  
  14. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  15. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  16. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  17. /*!40101 SET NAMES utf8 */;
  18.  
  19. --
  20. -- Database: `categories`
  21. --
  22.  
  23. -- --------------------------------------------------------
  24.  
  25. --
  26. -- Table structure for table `articles`
  27. --
  28.  
  29. CREATE TABLE IF NOT EXISTS `articles` (
  30.   `id` int(11) NOT NULL AUTO_INCREMENT,
  31.   `categories_id` int(11) NOT NULL,
  32.   `title` varchar(100) NOT NULL,
  33.   `content` text NOT NULL,
  34.   PRIMARY KEY (`id`)
  35. ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
  36.  
  37. --
  38. -- Dumping data for table `articles`
  39. --
  40.  
  41. INSERT INTO `articles` (`id`, `categories_id`, `title`, `content`) VALUES
  42. (1, 2, 'Article 1', 'This is article 1'),
  43. (2, 3, 'Article 2', 'This is article 2');
  44.  
  45. -- --------------------------------------------------------
  46.  
  47. --
  48. -- Table structure for table `categories`
  49. --
  50.  
  51. CREATE TABLE IF NOT EXISTS `categories` (
  52.   `id` int(11) NOT NULL AUTO_INCREMENT,
  53.   `parent_id` int(11) NOT NULL,
  54.   `title` varchar(100) NOT NULL,
  55.   PRIMARY KEY (`id`)
  56. ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
  57.  
  58. --
  59. -- Dumping data for table `categories`
  60. --
  61.  
  62. INSERT INTO `categories` (`id`, `parent_id`, `title`) VALUES
  63. (1, 0, 'Category 1'),
  64. (2, 1, 'Sub-category 1'),
  65. (3, 2, 'Sub-sub-category 1');
  66.  
  67. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  68. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  69. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;