![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| 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: * 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 |
|
|||||||
| Web Serving and Management how to web server support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#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?
|
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Manager, Alternative Comp
|
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.
__________________
|
|
|
|
|
|
#5 (permalink) |
|
Registered User
|
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. |
|
|
|
![]() |
| Thread Tools | |
|
|