LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2022, 07:53 AM   #1
Dag JNJ
LQ Newbie
 
Registered: Jul 2022
Posts: 19

Rep: Reputation: 10
Grant problem in mySQL for root user


Hi
I just installed Apache2 and MySQL 8.031 on fresh installed Mate 22.04.1. I used mysql_secure_installation for root. So I logged in to MySQL with mysql -u root -p
I created a database called 'konsum' and a user called 'db_user'.
I wanted to give the db_user full privileges to the db konsum, but mysql tells me, that I am not allowed to use GRANT.
Can anyone please tell me what I missed?
I am thankful for any help, best regards,
Dag JNJ
 
Old 11-09-2022, 08:09 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,673
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
Please provide the verbatim command that you attempted to use, and the exact text of the message that you received in response. "The devil is in the details."
 
Old 11-09-2022, 10:11 AM   #3
Dag JNJ
LQ Newbie
 
Registered: Jul 2022
Posts: 19

Original Poster
Rep: Reputation: 10
mysql> GRANT ALL PRIVILEGES ON konsum.* TO db_user@localhost;
ERROR 1410 (42000): You are not allowed to create a user with GRANT
 
Old 11-09-2022, 03:35 PM   #4
Dag JNJ
LQ Newbie
 
Registered: Jul 2022
Posts: 19

Original Poster
Rep: Reputation: 10
It worked as I did it this way:

Quote:
GRANT APPLICATION_PASSWORD_ADMIN,AUDIT_ABORT_EXEMPT,AUDIT_ADMIN,AUTHENTICATION_POLICY_ADMIN,BACKUP_ADMIN,B INLOG_ADMIN,BINLOG_ENCRYPTION_ADMIN,CLONE_ADMIN,CONNECTION_ADMIN,ENCRYPTION_KEY_ADMIN,FIREWALL_EXEMP T,FLUSH_OPTIMIZER_COSTS,FLUSH_STATUS,FLUSH_TABLES,FLUSH_USER_RESOURCES,GROUP_REPLICATION_ADMIN,GROUP _REPLICATION_STREAM,INNODB_REDO_LOG_ARCHIVE,INNODB_REDO_LOG_ENABLE,PASSWORDLESS_USER_ADMIN,PERSIST_R O_VARIABLES_ADMIN,REPLICATION_APPLIER,REPLICATION_SLAVE_ADMIN,RESOURCE_GROUP_ADMIN,RESOURCE_GROUP_US ER,ROLE_ADMIN,SENSITIVE_VARIABLES_OBSERVER,SERVICE_CONNECTION_ADMIN,SESSION_VARIABLES_ADMIN,SET_USER _ID,SHOW_ROUTINE,SYSTEM_USER,SYSTEM_VARIABLES_ADMIN,TABLE_ENCRYPTION_ADMIN,XA_RECOVER_ADMIN ON *.* TO `db_user`@`%`
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Create a new MySQL user and Grant Permissions to MySQL Database LXer Syndicated Linux News 0 06-07-2017 03:07 PM
How to grant root level access to non root user zaeem Linux - Server 19 03-07-2012 11:51 AM
[MySQL] - Root lost grant privileges - SOLVED wabby Linux - Software 7 02-15-2011 02:44 PM
Mysql User grant problems ubers0ldat Linux - Software 7 07-30-2003 12:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration