Setting up a database...

CannonBallGuyCannonBallGuy ModeratorShared Hoster
I've just downloaded a small CMS and I need to setup a database...
The instuctios are:
1)
create database CMS;
2)
GRANT ALL PRIVILEGES ON cms.* to cms_admin IDENTIFIED BY 'cms_admin' with grant option;
3)


USE CMS;

CREATE TABLE cms_t_users
(UserID VARCHAR(20) NOT NULL,
Password VARCHAR(20),
UserName VARCHAR(50),
EMail VARCHAR(50),
AdminUser CHAR(1),
Active CHAR(1),
PRIMARY KEY (UserID));

CREATE TABLE cms_t_menus (
ID MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT,
Title VARCHAR(255),
HyperLink VARCHAR(255),
DisplaySequence MEDIUMINT UNSIGNED,
Active CHAR(1),
PRIMARY KEY (id)
);

INSERT INTO cms_t_users(UserID,UserName,Password,AdminUser,Email,Active) VALUES('ADMIN','admin','admin','Y','admin','Y')

But I really do not know how to even start to make a mySQL database (except on CPanel)...

Can someone give me a very easy, simple list of instructions on how to do this, or maybe someone would be willing to do it for me? Please?

Comments

Sign In or Register to comment.