Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Cpanel Mysql Database Management, Part 2.1 Of My 7 Part Cpanel Tutorial
Albus Dumbledore
post Nov 8 2006, 12:14 AM
Post #1


Hidden Secrets can't be told threw just words. One must feel what the other feels to truely understand...
**************

Group: Members
Posts: 1,522
Joined: 8-January 06
From: Sacramento California
Member No.: 16,756
myCENT:ZERO




This tutorial is an extension to my 7 tutorial series about the Cpanel. The 7 different Cpanel tutorials can be found below.
Part 1: E-mail Management
Part 2: Useful Site Management Tools
Part 3: Useful Site Management Tools2.1
Part 4: Analysis/Log Files
Part 5: Advanced Tools
Part 6: PreInstalled Scripts, Extras, and Cpanel Options
Part 7: Fantastico

Detailed Cpanel Tutorial Part 2.1: MySQL Management



In this tutorial, i will explain how to add, edit, delete and over-all manage the MySQL Feature in the Cpanel.

Creating a MySQL Database

1) Go to the middle of the page until you see an input field with the text MySQL Database:

2) Enter the name of the MySQL Database that you want it to be. For instance, if you are making the MySQL Database for your forums, you might want to make it forums.

3) Then Simply hit enter, or 'Create MySQL Database'
-note- After you make the MySQL Database, it's OFFICAL name will be: "CPANEL USERNAME_Database name" so basically, it will be your cpanel username prefixing the name of the database you created.


Deleting a MySQL Database
1) Find the MySQL Database that you want to delete in the list.

2) Find the icon to the RIGHT of the Database Name and click the icon that says DELETE

3) You will be asked if you are sure you want to do this, click Yes if you really want to and No if you dont want to.


Checking The Database
This will allow you to check and see if all of the tables were created correctly, or if there is something wrong with them.
1) Click on the little icon to the RIGHT of the database name that says CHECK

2) It will run the automatic check and tell you which ones are OK and which ones AREN'T OK


Repairing the Database
This will allow you to repair any damage that has been caused to the Databse.
1) Click on the little icon to the RIGHT of the database name that says REPAIR
2) It will run an automatic script and tell you which ones were successfully repaired, and which ones weren't successfully repaired.


Creating a Database User
1) Go down to the bottom of the page until you see two text input fields that say 'User Name:' and 'Password:' next to them

2) Enter the desired 'User Name' and 'Password'

3) Click the submit button, or hit enter and you're done creating the user.


Assigning a User to a Database
Most scripts require that the User be assigned to a databse, this will show you how to do it.
1) Just above where you created the databse, find two drop down lists that say 'User:' and 'MySQL Database:'

2) Find the User that you just made, as well as the database you made before that.

3) Make sure the User is Highlighted and the Database you want is highlighted.

4) The Privileges are already set for you so nothing you need to do with that

5) Click the button that says Grant Permissions, and then you are done.


Deleting Database Users
There are two ways you can do this.
A:
1) Find the database that the user is assigned to and under the Database name it says the Database User Name.

2) Find the button to the RIGHT of the Database username that says DELETE

3) That will un-assign the user to the database.

B:
1) Go down to where you created the Database User

2) Find the Database User you wish to delete

3) Click the little icon that says DELETE to the RIGHT of the Database Username

4) This will delete the Database User Forever


Access Host
In most scripts, this field is already filled in for you as localhost but if it is not, when setting up the script on your site, when it asks for the accesshost, simply put in 'localhost' you do not need to make a new Access Host for any real reason.


Just as a side note: Underneath the Database Name and UserName in the list of Databases, you will see a bit of coding, this coding can be used by people who know PHP and PERL to allow access to this particular database.

At the bottom of the screen, you will find a link to PHP My Admin, once i write a tutorial for that, I will link to it from here. But currently i do not have a tutorial for that.
Go to the top of the page
 
+Quote Post
farsiscript
post Nov 10 2006, 09:59 AM
Post #2


Super Member
*********

Group: Members
Posts: 357
Joined: 8-April 06
Member No.: 21,487



very nice dear Albus Dumbledore , thanks for this tut
in localhost we can make one database in phpmyadmin ! but in cpanel "phpmyadmin " we can not ?
why this script working different ?
Go to the top of the page
 
+Quote Post
jlhaslip
post Nov 10 2006, 12:23 PM
Post #3


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 4,326
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:97.30



For security reasons, the way to create a Database on the Shared Hosting server is by using the cpanel MYSQL selection. This ensures the Database is created on your account and then you have control over which users can access it. Your cpanel name is pre-pended to each of your database names, for instance.
If we all had phpmyadmin create capability, the organisation of the datbases would be a disaster zone.
This feature of the fantastico adding the user name is a security feature, in short answer form.
Go to the top of the page
 
+Quote Post
delivi
post Nov 17 2006, 07:16 AM
Post #4


Trap Grand Marshal Member
***********

Group: [HOSTED]
Posts: 1,317
Joined: 11-January 06
From: Chennai, India
Member No.: 16,932
myCENT:32.75



thanx dude for this complete tutorial for setting up and workin with CPanel. Eventhough i've been using it for several months i never knew that this much can be done.

Thanx for this extensive tutorial.
Go to the top of the page
 
+Quote Post
TeeCee06
post Nov 18 2006, 05:51 AM
Post #5


Advanced Member
*******

Group: Members
Posts: 140
Joined: 16-November 06
From: WV
Member No.: 33,505



Very nice tutorial. The information is very clear and I learned I thing or two. Even though I really dont mess with Mysql Databases much myself I do need them for my forum and a couple of the things you said about users helps me understand the way it works a lot better.
Go to the top of the page
 
+Quote Post
Albus Dumbledore
post Nov 20 2006, 07:13 AM
Post #6


Hidden Secrets can't be told threw just words. One must feel what the other feels to truely understand...
**************

Group: Members
Posts: 1,522
Joined: 8-January 06
From: Sacramento California
Member No.: 16,756
myCENT:ZERO



yes, there are many things that people can do with Cpanel, and allot of people do not know about them.. which is why i made these complete Cpanel tutorials.

It's good to know that they helped some people out biggrin.gif
Go to the top of the page
 
+Quote Post
sumit
post Dec 9 2006, 06:31 PM
Post #7


Newbie [Level 1]
*

Group: Members
Posts: 11
Joined: 7-December 06
Member No.: 34,858



yes it is very nice tutorial. this post can helps to understand about cpanel. anybody could get about cpanel.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Cron Jobs - Cron Jobs In Cpanel(33)
  2. Complete Login System(57)
  3. Complete Login And Registration System(9)
  4. All About Mambo!(4)
  5. How To Save Upload Time In Cpanel(37)
  6. Php Dynamic Signatures(9)
  7. Mysql Database Setup(1)
  8. A Nice Mysql Server Check(4)
  9. Install Php 5 To Work With Mysql(0)
  10. Searching With Php And Mysql(2)
  11. Installing Php + Mysql + Apache + Phpmyadmin On Windows Part 2(0)
  12. Quiz With Php, But Without Mysql(3)
  13. Check Referrer To Prevent Linking Yours From Other Sites(8)
  14. Starting Or Stopping Apache And Mysql Server Via Batch File(0)
  15. Cpanel E-mail Management(0)
  1. Cpanel Useful Site Management Tools(0)
  2. Cpanel Useful Site Management Tools 2.1(0)
  3. Cpanel Analysis And Log Files(0)
  4. Cpanel Advanced Tools(20)
  5. Cpanel Preinstalled Scripts, Extras, And Cpanel Options(1)
  6. Cpanel Fantastico(14)
  7. Cpanel E-mail Management Set-up(0)
  8. Ftp Account Management(1)
  9. Simple Shoutbox(34)
  10. Simple User System(19)
  11. Adding Data To A Database And Displaying It Later(1)
  12. Ftp And Cpanel For Dummies(7)
  13. Getting Started With Mysql(2)