Results 1 to 3 of 3

Thread: How to hidden mysql database

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Location
    Tamilnadu,India
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default How to hidden mysql database

    Hi all,
    I am configure mysql database in redhat linux 6. how can i hide specific database in mysql server and give view for specific ipaddress for my client machine...

  2. #2
    Junior Member
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    login to mysql as root user:

    mysql -u root -p
    use mysql;
    grant all privileges on yourdatabase.* to youruser@'IPADDRESS' identified by 'password';
    flush privileges

    That should do the trick.


    Quote Originally Posted by prabhu_rhce View Post
    Hi all,
    I am configure mysql database in redhat linux 6. how can i hide specific database in mysql server and give view for specific ipaddress for my client machine...

  3. #3
    Junior Member
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Quote Originally Posted by prabhu_rhce View Post
    Hi all,
    I am configure mysql database in redhat linux 6. how can i hide specific database in mysql server and give view for specific ipaddress for my client machine...

    HI
    login to mysql root by mysql -u root -p and give password

    1.First create the database with grant all permission(eg here i have used SUSHILA1 as project name)
    mysql> create database sushila1;
    mysql> grant all privileges on sushila.* to sushila@'%'identified by 'sushila';

    2..Now revoke select permission to specific database to all user.. so that now one can view that database
    mysql> revoke select on sushila1.*from sushila@'%' identified by 'sushila';

    3.Now give grant select permission to specific ip address (client machine) alone so that only he can view
    mysql> grant all privileges on sushila1.*to sushila@'192.168.1.200' identified by 'sushila'; (here 192.168.1.200 is ip address of clent machine)


    see you can view database name but not tables in above method.. If it is working for you reply me..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Tomcat with Mysql Database.
    By lenin.km in forum Web servers
    Replies: 0
    Last Post: 18th November 2011, 10:31 AM
  2. MySQL Database Tuning
    By Ana45 in forum CentOS / RHEL / Fedora
    Replies: 7
    Last Post: 12th September 2011, 06:07 PM
  3. Replies: 4
    Last Post: 20th January 2010, 04:57 PM
  4. [Solved] How to append mysql database
    By arvnix in forum Databases servers
    Replies: 4
    Last Post: 4th January 2010, 10:22 AM
  5. Import SQL Database to MySQL!
    By nabila in forum Databases servers
    Replies: 6
    Last Post: 27th August 2009, 12:39 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41