From aaa6a44059839e544656f570279ba2b3b19f0282 Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Thu, 25 Jul 2013 05:12:06 +0200 Subject: [PATCH] Renamed SQL file and rewrote README --- README.md | 14 ++++++-------- blog_table.sql => blogtable.sql | 0 2 files changed, 6 insertions(+), 8 deletions(-) rename blog_table.sql => blogtable.sql (100%) diff --git a/README.md b/README.md index 57dfe8e..306d1f0 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,15 @@ simplog is a (very) simply PHP blog engine. It's supposed to be implemented into What's missing? --------------- Pretty much everything, depending on how you plan to use it. simplog as of right now does not include anything to acually write/post blog posts. To create a blog post you have to manually create it in a MySQL database. -There is also no template to create the database as of right now. As of right now the only thing it can do is to display posts already created. -What should the MySQL table look like? --------------------------------------- -To create a table to be able to work with this blog engine you need a table to look like this (name it "blog" since that's what I used in the code). +How do I create the MySQL table? +-------------------------------- +Either create a new database and possibly a new user or use an existing database/user and run the command: -An int field called postnumber with auto increment. -A date field called date. -A text field called tile. -A text field called posttext. +mysql -u -p < blogtable.sql + +You'll be asked to enter the passwor for the user, enter it. Now you have created the table for the blog. Now you can start filling it with blog posts. Contributing ------------ diff --git a/blog_table.sql b/blogtable.sql similarity index 100% rename from blog_table.sql rename to blogtable.sql