Intranet Journal

Go Back   IT Management Forum > Intranet Journal

Intranet Journal The new discussion forum for Intranet Journal readers. Leave comments and questions for IJ authors. Suggest story ideas and provide feedback.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-23-2004, 11:45 AM
TheCyborg TheCyborg is offline
Member
 
Join Date: Sep 2004
Posts: 1
Red face Creating a PHP-Based Content Management System

Hi PeteZ,

I have been following and immensely enjoying your articles re. the subject-matter, in fact am a newbie to PHP, MySql and Apache but still I have been trying to create the system on my home PC, based on the info in your article. Am running a PC with XP Professional (SP2), Apache 2.0, PHP 5.0.1 and MySql 4.0.21 together with MySql Administrator 1.0.12 and My Sql Query Browser 1.0.7 beta. My problem is, in part 3 of your article in order to create the database you ask that we cut and paste a piece of code into MySql Administrator, however to a newbie that doesn't say much as I am not sure where specifically to paste this piece of code. Could you kindly help. Thanx in advance. By the way - keep up the good work and am very eagerly awaiting the next part(s) of the article. CHEERS!!!!
Reply With Quote
  #2 (permalink)  
Old 09-25-2004, 03:47 AM
petez petez is offline
Registered User
 
Join Date: Sep 2004
Posts: 35
Hi there,
Glad you've been enjoying the articles and sorry for the slight delay in replying!

There are two main ways of running MySQL queries, such as the one I provided in the article:

1. Use the mysql / mysqladmin tools.

In Windows, open the command prompt (start->run->cmd) Navigate to the MySQL folder, e.g. cd c:\mysql

Now you can create the database, with the command:

Code:
mysqladmin create databasename
Where databasename is what you wish to call the database, e.g. intranet or content etc

Then, you need to run the MySQL code I provided in the article to insert some tables into this database. To do this, run:

mysql -u username -p

(You'll next be asked for the password)

Finally, copy and paste the mysql code from the article (changing `databasename` to whatever you just called it), and you're done! Note that because it's on multiple lines in the article, you may have to copy it bit by bit. You don't have to worry about that if you use this method:

2. Use a third party tool. This should be quite a bit easier than the other method.

You state you have MySQL Query Browser, I recommend this tool to everyone - it's very good (http://dev.mysql.com/downloads/query-browser/). Use it to connect to your MySQL server (by entering the username, password etc), and create the database by typing into the query box at the top:

Code:
create database databasename
And click execute. You can then copy and paste my code into the same box, click execute, and presto! The table is created.

I hope that helps!

Peter.
Reply With Quote
  #3 (permalink)  
Old 09-28-2004, 09:19 AM
adocrat adocrat is offline
Member
 
Join Date: Sep 2004
Posts: 1
CMS

Hi Petez,

Thanks for this. Your articles have been a great help to me so far. I just hope we can see a lot more fo them soon as I am working on a CMS and I have found your articles to be one of the more informative ones.
Thanks
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 07:20 AM.





Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0