Jump to content

Recommended Posts

Posted

Hi, in phpMyAdmin, "Create Database" under MySql says "No Privileges". Is that an error? Shouldn't I be able to create a new database? I suppose I could always create the db on my machine at home, and upload it (btw, where are mysql db's stored on the virtual hosting accounts?).

Posted (edited)

I don't know why it does that. I had this question last week, so I submitted a question to the help desk. They told me that I have to create databases using the "My SQL Databases" link. Once the database has been created, and users have been added to it, you can administer it in phpMyAdmin.

 

I know, it seems weird. But it worked for me.

 

EDIT: "users" should be singular. You only have to add one user, but you can add more if needed.

Edited by abinidi
Posted
Hi, in phpMyAdmin, "Create Database" under MySql says "No Privileges". Is that an error? Shouldn't I be able to create a new database? I suppose I could always create the db on my machine at home, and upload it (btw, where are mysql db's stored on the virtual hosting accounts?).

It is not an error. As abinidi noted, you create your databases and add users from the "MySQL Databases" page in CPanel. I presume this is to 1) prevent scripts from automatically creating databases, and 2) make sure that database names and users are properly prefixed with your CPanel username, so each user can properly access their databases (and only their databases).

 

The MySQL databases are stored on the server, but not in a location you can access directly. Uploading a MySQL database to the correct location and having it properly recognized in CPanel and phpMyAdmin would require assitance from the Help Desk (not recommended except in unusual circumstances).

Posted
I don't know why it does that. I had this question last week, so I submitted a question to the help desk. They told me that I have to create databases using the "My SQL Databases" link. Once the database has been created, and users have been added to it, you can administer it in phpMyAdmin.

 

I know, it seems weird. But it worked for me.

 

EDIT: "users" should be singular. You only have to add one user, but you can add more if needed.

 

Thanks for your reply! I'll do that.

 

Does anybody know where the MySQL databases are stored in a virtual hosting account? For instance, on my Gentoo server they are located in /var/lib/mysql, perhaps they are in a similar location? Or are they actually stored under your user account?

Posted
Hi, in phpMyAdmin, "Create Database" under MySql says "No Privileges". Is that an error? Shouldn't I be able to create a new database? I suppose I could always create the db on my machine at home, and upload it (btw, where are mysql db's stored on the virtual hosting accounts?).

It is not an error. As abinidi noted, you create your databases and add users from the "MySQL Databases" page in CPanel. I presume this is to 1) prevent scripts from automatically creating databases, and 2) make sure that database names and users are properly prefixed with your CPanel username, so each user can properly access their databases (and only their databases).

 

The MySQL databases are stored on the server, but not in a location you can access directly. Uploading a MySQL database to the correct location and having it properly recognized in CPanel and phpMyAdmin would require assitance from the Help Desk (not recommended except in unusual circumstances).

 

Ok, you answered my question. It appears you and I posted at the same time. Thanks for the answer!

Posted
It is not an error.  As abinidi noted, you create your databases and add users from the "MySQL Databases" page in CPanel.  I presume this is to 1) prevent scripts from automatically creating databases, and 2) make sure that database names and users are properly prefixed with your CPanel username, so each user can properly access their databases (and only their databases).

This makes sense. Thanks for that explanation.

The MySQL databases are stored on the server, but not in a location you can access directly.  Uploading a MySQL database to the correct location and having it properly recognized in CPanel and phpMyAdmin would require assitance from the Help Desk (not recommended except in unusual circumstances).

So does hitting the database count against bandwith? I'm not really sure how this functions, so mabye this isn't really an issue of bandwith.

Posted
So does hitting the database count against bandwith? I'm not really sure how this functions, so mabye this isn't really an issue of bandwith.

I don't believe that just hitting the MySQL database itself counts against bandwidth, as that occurs on the server internally. Imagine you have a script that dumps your MySQL database and displays the dump in your browser window. The actual MySQL query that retrieves the data would not count against your bandwidth, but the bandwidth used to send that data to your browser *does* count. Hopefully that makes sense... :)

  • 4 weeks later...
Posted
It is not an error.  As abinidi noted, you create your databases and add users from the "MySQL Databases" page in CPanel.  I presume this is to 1) prevent scripts from automatically creating databases, and 2) make sure that database names and users are properly prefixed with your CPanel username, so each user can properly access their databases (and only their databases).

 

The MySQL databases are stored on the server, but not in a location you can access directly.  Uploading a MySQL database to the correct location and having it properly recognized in CPanel and phpMyAdmin would require assitance from the Help Desk (not recommended except in unusual circumstances).

 

I tried this and it did not work for me.

I am a newbie to this.

In cpanel I clicked on mysql databases. I had a database and one user there already and it would not work earlier so I deleted all databases and users. then created database then created user then gave user access all privilages to database. it says this x user has access (all privaligies (SP? ) so ok it is working so far. I click on phpmyadmin and here it always says *no privaligies !! what am I doing wrong? I tried to create a table etc and it does not save.

 

also do I need to create a user?

 

thanks in adavance

Posted

Welcome to the forums, timm! :)

 

There's three steps to setting up a MySQL database:

 

1) Add (create) database

2) Add (create) user

3) Add user to database (grant user privileges to access database)

 

Once you've completed these 3 steps, you should be able to access your database in phpMyAdmin.

 

You may want to look at the TCH movie tutorial on setting up MySQL accounts, illustrating how to perform the above three steps.

 

Hope this helps...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...