Results 1 to 4 of 4

Thread: Mysql remote access

  1. #1
    Join Date
    Aug 2009
    Posts
    40

    Mysql remote access

    Does any one know how to enable mysql remote access? By default it is disable for security reasons. What commands needs to be executed on remote machine so it can access local MySQL sever.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Mysql remote access

    The server firewall, and possibly your local firewall need to be configured to allow access on PORT 3306, which is used by MySQL by default. For mysql remote access you need to Modify the MySQL Configuration file, Modify the MySQL User Accounts.

  3. #3
    Join Date
    Jan 2009
    Posts
    199

    Re: Mysql remote access

    Opened the dos prompt and go to c:>cd mysql/bin

    c:>mysql>cd bin

    c:>mysql> mysql --user=root --password=mypassword

    When you enter this command the window will appear which will allow you to
    grant previlage to remote user.

    grant select,insert,update, delete on db_name.* to user_name IDENTIFIED BY "user_password";

    Here if the user has to be given remote access ( say from coumputer d ) then this should be

    grant select,insert,update, delete on db_name.* to user_name@d IDENTIFIED BY "user_password";

    This will allow remote access to user user_name from computer d. At computer d the server address can be the IP address of c and the user id and password will be same .

  4. #4
    Join Date
    Dec 2008
    Posts
    177

    Re: Mysql remote access

    This are useful in mysql remote access procedure :
    Code:
    %mysl_bin%\mysql -u aUSERNAME  -p
    Code:
    mysql>
    Code:
    grant all privileges on *.* to USER@IP identified by "PASSWORD";
    Code:
    FLUSH PRIVILEGES;
    Code:
    exit;

Similar Threads

  1. How to remote connections by MySQL database server
    By Arumugan in forum Software Development
    Replies: 4
    Last Post: 13-02-2010, 01:50 AM
  2. How to allow remote connection to MySQL
    By Gomeler in forum Software Development
    Replies: 5
    Last Post: 17-12-2009, 01:24 PM
  3. Connecting to remote MySQL
    By Gavisht in forum Software Development
    Replies: 4
    Last Post: 10-12-2009, 08:35 PM
  4. Replies: 3
    Last Post: 07-11-2009, 09:36 PM
  5. Light remote visual fox pro to MySQL 5
    By Vincenzo in forum Software Development
    Replies: 1
    Last Post: 10-10-2008, 07:03 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,155,634.06201 seconds with 16 queries