TechSpott - Computer and technology forums

Go Back   TechSpott - Computer and technology forums > Webmasters > Database Management > MySQL
MySQL Forum dedicated to the world's most popular open source database engine.

Reply
 
Thread Tools Display Modes
Old April 21st, 2010, 08:04 AM   #1 (permalink)
NEEDLEGALHELP
Guest
 
Posts: n/a
Default How to grant access for a User from a remote client (i.e., mysql cleint) ?

Hi,

I have connected to a remote MySQL server using mysql client with root account.
And I created a Database with few tables within it. Now I want to grant access to this database for some user 'xyz'. While granting I get "access denied error" as follows.
Please let me know how I could grant access using a remote client(mysql client) ?

C:\Documents and Settings\mchowdaiah>mysql -hMyDBServer -uroot -ppassword
原帖地å€: TechSpott - Computer and technology forums http://www.techspott.com//showthread.php?p=9065
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 49
Server version: 5.1.41-community MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> grant all privileges on mydbname.* to mydbuser@'138.239.201.234' identified by 'mydbpasswd' with grant option;
ERROR 1044 (42000): Access denied for user 'root'@'%' to database 'mydbname'
mysql>
mysql> grant all privileges on mydbname.* to mydbuser@'localhost' identified by 'mydbpasswd' with grant option;
ERROR 1044 (42000): Access denied for user 'root'@'%' to database 'mydbname'
mysql>
mysql> grant all privileges on mydbname.* to mydbuser@'%' identified by 'mydbpasswd' with grant option;
ERROR 1044 (42000): Access denied for user 'root'@'%' to database 'mydbname'
mysql>
mysql>


regards,
Mukunda
  Reply With Quote Share with Facebook
Reply

Bookmarks

Tags
access, cleint, client, grant, mysql, remote, user


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle Announces MySQL Cluster 7.1 News Bot News 0 April 13th, 2010 09:47 PM
How to allow remote connections to MySQL.? Squeazer MySQL 0 April 12th, 2010 10:29 AM
How to allow remote connections to MySQL.? Squeazer MySQL 0 April 12th, 2010 10:29 AM
How do I restrict remote desktop access to a specific user or group in Windows bwhite688 Windows Server 0 April 2nd, 2010 01:55 AM
Disable User Access Control rash Windows Vista 0 February 21st, 2010 04:19 PM

 
Forum Stats
Members: 14,369
Threads: 20,378
Posts: 27,853
Total Online: 43

Newest Member: unatelealvami

Latest Threads

Advertisements

Support our advertisers!

Amazon
Sears
Macys
1800flowers.com
Drugstore.com


Carbonite Online-Backups
Tiger Direct
Tech Depot
Buy.com
Office Depot
Fatcow
HostGator


TripsNow.us
Marriott
Expedia
CheapTickets.com
OneTravel
Hotwire

Are you a Fan?

Share this on Facebook

Tag Cloud

Partner Links


Contact Us - Home - Archive - Privacy Statement - Top - Copyright © 2009-2010, TechSpott - All times are GMT -4. Time is 07:11 PM

Powered by vBulletin® Copyright © Jelsoft Enterprises Ltd. :: SEO by vBSEO