Results 1 to 6 of 6

Thread: How to allow remote connection to MySQL

  1. #1
    Join Date
    Aug 2009
    Posts
    40

    How to allow remote connection to MySQL

    I have problem with my MySQL server. I would like to know the procedure to connect Mysql from my machine. Is there any tool or command which allow user to access Mysql remotely. I know MySQL database server remote access disabled by default and i need to know how to enable it?

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

    Re: How to allow remote connection to MySQL

    To remotely connect to your MySQL databases,You'll also need to open the MySQL port (3306) on the other server if it's closed you must have an I.P.-based account. Login to your control panel and click on the side menu "ValueApps" then the "Database" tab. Your hosting accounts come with free applications (called Value Apps) that you can install. You need to run this command from

    Code:
    GRANT ALL PRIVILEGES ON *.* TO USERNAME@IP IDENTIFIED BY "PASSWORD";

  3. #3
    Join Date
    Jan 2009
    Posts
    199

    Re: How to allow remote connection to MySQL

    You need to enable remote connection because they are disabled as default. PHPMaker is tool that can generate a PHP from MySQL database. You have to set the privilegs for a user to access the database and last but not least you have to mak sure that the mysql porrt (usually 3306) can be used by your client.Using PHPMaker, you can instantly create Web sites that allow users to view, edit, search, add and delete records on the Web.

  4. #4
    Join Date
    Dec 2008
    Posts
    177

    Re: How to allow remote connection to MySQL

    All you need to do is specify remote mysql host with –h option. For example to connect remote mysql server called server1.test1.com you need to type command as follows

    $ mysql –u ruchi –h server1.test1.com -p

    OR if you with to use MySQL server ip address (175.20.1.101)

    $ mysql –u vivek –h 175.20.1.101 -p

  5. #5
    Join Date
    Feb 2008
    Posts
    1,852

    Re: How to allow remote connection to MySQL

    This are the useful command for mysql remote connection :

    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;

  6. #6
    Join Date
    May 2008
    Posts
    2,012

    Re: How to allow remote connection to MySQL

    Code:
    mysql -u root
    mysql> SET PASSWORD FOR 'ROOT'@'LOCALHOST"
    > = PASSWORD('new_password');
    mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'
    > IDENTIFIED BY 'password' WITH GRANT OPTION;
    mysql> FLUSH PRIVILEGES;
    mysql> exit

Similar Threads

  1. Connecting to remote MySQL
    By Gavisht in forum Software Development
    Replies: 4
    Last Post: 10-12-2009, 08:35 PM
  2. Replies: 3
    Last Post: 07-11-2009, 09:36 PM
  3. Mysql remote access
    By Gomeler in forum Software Development
    Replies: 3
    Last Post: 30-10-2009, 12:05 PM
  4. Light remote visual fox pro to MySQL 5
    By Vincenzo in forum Software Development
    Replies: 1
    Last Post: 10-10-2008, 07:03 PM
  5. Replies: 2
    Last Post: 27-01-2008, 05:15 AM

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,713,572,580.54025 seconds with 17 queries