MySQL create user error

Status
Not open for further replies.

manohoo

New Member
Messages
9
Reaction score
0
Points
0
I can create a new user by using cpanel's MySQL Database, I don't get any errors.

But... the user is not actually created. PHPadmin shows "No privileges" in red font right below "Create Database".

PHPMyAdmin' SQL window command returns this error when attempting to create a new user:
Error

SQL query:
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'whatever'
MySQL said:
#1227 - Access denied; you need the CREATE USER privilege for this operation

Can anyone ehlp me?
 

vishal

-::-X10 Guru-::-
Community Support
Messages
5,255
Reaction score
192
Points
63
Use Cpanel and not phpmyadmin to create database.This is found in cpanel ,Mysql Wizard
 
Last edited:

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
When you assign a user you create in cPanel to a database, do you choose "All privileges"?
 

manohoo

New Member
Messages
9
Reaction score
0
Points
0
Thanks for the replies. I followed your advice, no success.

I find it odd that there's no table 'user' in the info schema:

* CHARACTER_SETS
* CLIENT_STATISTICS
* COLLATIONS
* COLLATION_CHARACTER_SET_APPLICABILITY
* COLUMNS
* COLUMN_PRIVILEGES
* INDEX_STATISTICS
* INNODB_BUFFER_POOL_CONTENT
* INNODB_IO_PATTERN
* INNODB_RSEG
* KEY_COLUMN_USAGE
* PROCESSLIST
* PROFILING
* ROUTINES
* SCHEMATA
* SCHEMA_PRIVILEGES
* STATISTICS
* TABLES
* TABLE_CONSTRAINTS
* TABLE_PRIVILEGES
* TABLE_STATISTICS
* TRIGGERS
* USER_PRIVILEGES
* USER_STATISTICS
* VIEWS

Any suggestions?
 
Last edited:

Skizzerz

Contributors
Staff member
Contributors
Messages
2,929
Reaction score
118
Points
63
you need to use cPanel in order to create new MySQL users or new MySQL databases -- you cannot do either from phpmyadmin
 
Last edited:

manohoo

New Member
Messages
9
Reaction score
0
Points
0
Thanks, I know what I was doing wrong.

I added the user, but I failed to add the user to the database! I was trying to do that in PHPMyAdmin, but as you guys said, it can't be done there.

Thanks for your help
 

papichulo_carioco

Community Advocate
Community Support
Messages
1,415
Reaction score
12
Points
0
To create a database and its corresponding user, you should use MySQL Databases, PhpMyAdmin not ;)
 
Status
Not open for further replies.
Top