Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 





Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Serving and Management
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Web Serving and Management how to web server support forum

Reply
 
Thread Tools
Old 02-22-2008, 11:03 AM   #1 (permalink)
Registered User
 
Join Date: Dec 2007
Location: Pennsylvania
Posts: 45
OS: Ubuntu Linux


How to make a MySQL Database?

Okay i have Ubuntu Linux, Apache, MySQL and PHP (LAMP) server... I can't figure out how to make a database! heh... I tried looking online, didn't find much. Can anyone help me?
billenium is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 02-25-2008, 07:59 AM   #2 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Downers Grove, IL
Posts: 1,821
OS: Gentoo Linux, Redhat Enterprise Linux, CentOS

My System

Re: How to make a MySQL Database?

There are several things that need to be done. First is create the database, then create and assign the user to the database with permissions, then create the tables within the database.

To start, open a terminal window and su as root. Then type "mysql" so you can login to mysql.

Create the database:

create database mydatabase;

Create user:

grant all on mydatabase.* to username@localhost identified by "mypassword";

(If this will be a remove user, then use the IP address username@1.2.3.4 or if the user will be connecting from multiple IP's, you can either type in each IP or use username@% as a wildcard. If multiple IP's, you'll need to issue a grant all for each IP.)

Create tables

This will be your basic SQL. If you create the SQL in a text file, you can use the following from the command line: mysql -u username -p mydatabase < myfile.sql

That's the basics to get your started.
__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 04-23-2008, 12:31 AM   #3 (permalink)
Registered User
 
Join Date: Apr 2008
Posts: 25
OS: XP Service pack 2


Re: How to make a MySQL Database?

Much easy is to use PHPMyAdmin to create tables on database.
royax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 04-26-2008, 11:54 AM   #4 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Downers Grove, IL
Posts: 1,821
OS: Gentoo Linux, Redhat Enterprise Linux, CentOS

My System

Re: How to make a MySQL Database?

Quote:
Originally Posted by royax View Post
Much easy is to use PHPMyAdmin to create tables on database.
PHPMyAdmin has limitations. While it works fine with small databases, it's basically useless with large ones.
__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-26-2008, 01:08 PM   #5 (permalink)
Registered User
 
Warzx's Avatar
 
Join Date: Jun 2008
Location: Herrin, IL, 62948
Posts: 6
OS: Windows XP Pro


Send a message via AIM to Warzx Send a message via MSN to Warzx
Razz Re: How to make a MySQL Database?

If Your Using A Host Like x10 Or 110mb, Theres PHPmyadmin (2nd To Easiest) Or Theres A icon On Many Simple Host That Says "Create MYSQL Database"

Why Not Post Your Web Hosting Provider? That'll Make Things Alot More Easy To Explain.
Warzx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-26-2008, 02:02 PM   #6 (permalink)
Registered User
 
Join Date: Dec 2007
Location: Pennsylvania
Posts: 45
OS: Ubuntu Linux


Re: How to make a MySQL Database?

First my host is: localhost

and second i got it... many many months ago...

Did you check the post date? February?
billenium is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-27-2008, 09:41 AM   #7 (permalink)
Registered User
 
Warzx's Avatar
 
Join Date: Jun 2008
Location: Herrin, IL, 62948
Posts: 6
OS: Windows XP Pro


Send a message via AIM to Warzx Send a message via MSN to Warzx
Re: How to make a MySQL Database?

Oh..Um...Err..Sorry. Lol, Ill Start Paying Attention To That From Now On...

Sorry.
Warzx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

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

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



All times are GMT -7. The time now is 10:30 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82