+ Reply to Thread
Results 1 to 5 of 5

Thread: mysql connect function details

  1. #1
    Super Moderator Modestas is on a distinguished road Modestas's Avatar
    Join Date
    Jun 2011
    Posts
    1,846

    Re: mysql connect function details

    Hello,

    Replace "localhost" with server where your hosting account is created IP or hostname, for example, box1.host1free.com or 94.249.143.2
    Also, add your local IP to access hosts in MySQL Management.

  2. #2
    Junior Member abhijeet is on a distinguished road
    Join Date
    Jan 2012
    Posts
    2

    mysql connect function details

    i am trying to connect this mysql from by local machine (not from host1free), can anyone help me what should i put in place of localhost??
    mysql_connect("localhost","peter","abc123");

    or is there any way to update table in host1free mysql from mysql??

  3. #3
    Junior Member jamewhite86 is on a distinguished road
    Join Date
    Jan 2012
    Posts
    12

    Re: mysql connect function details

    I think ma mysql connect function details coding show in below side.
    mysql_connect — Open a connection to a MySQL Server

    Report a bug
    Description

    resource mysql_connect ([ string $server = ini_get("mysql.default_host") [, string $username = ini_get("mysql.default_user") [, string $password = ini_get("mysql.default_password") [, bool $new_link = false [, int $client_flags = 0 ]]]]] )

  4. #4
    Junior Member abhijeet is on a distinguished road
    Join Date
    Jan 2012
    Posts
    2

    Re: mysql connect function details

    hi Modestas,
    i am holding a free account and i don't see any privilege page on phpmyadmin. is it possible for a free account holder to add my local IP to access hosts in MySQL Management.
    now i am getting "Could not connect: No connection could be made because the target machine actively refused it. "

  5. #5
    Super Moderator Modestas is on a distinguished road Modestas's Avatar
    Join Date
    Jun 2011
    Posts
    1,846

    Re: mysql connect function details

    Yes you can add your IP in the access hosts under MySQL Management.

    Quote Originally Posted by abhijeet View Post
    hi Modestas,
    i am holding a free account and i don't see any privilege page on phpmyadmin. is it possible for a free account holder to add my local IP to access hosts in MySQL Management.
    now i am getting "Could not connect: No connection could be made because the target machine actively refused it. "

+ Reply to 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