Solved

how do i grant permissions to my mysql db?

Posted on 2008-06-10
2
1,264 Views
Last Modified: 2013-12-16
ok, i just created an app and db on my local system.  we are now using linux os.  I have moved the code to the server, created the db and now I need to add the tables and data which are all located in an .sql files. after creating the db i did this:

grant all privileges on compx to compx identified by 'compx20';

  grant all privileges on compx to compx@localhost identified by 'compx20';

  update mysql.user set password=OLD_PASSWORD('compx20') where user='compx ';

  flush privileges;

i load my .sql file and get 1044-access denied for user 'compx@% to database mysql.  I am using mysql qui (navicat) and i know locally, i had to go to manage users and select everything, edit, create, etc and save it.  I thought all the granting above would take care of that.  Now I am wondering if I have to somehow grant edit, create, delete, etc for the db that is on the linux server.  

any help would be appreciated.
0
Comment
Question by:justmelat
2 Comments
 
LVL 4

Accepted Solution

by:
albuitra earned 400 total points
ID: 21754651
Try with this
grant all privileges on compx.* to compx@localhost identified by 'compx20';
0
 
LVL 1

Author Comment

by:justmelat
ID: 21754800
THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0

Featured Post

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question