ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Installing on webhost with no port for mysql


  • 2009-08-17 12:25:47

    Installing on webhost with no port for mysql

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    Operating system ATutor is installed on - Unix
    ATutor version -1.6.2
    Patch #s applied -
    ATutor theme name -
    PHP version - PHP 4.3.0+
    MySQL version -MySQL 4.1.10+
    Webserver & version - Apache
    Copies of error messages -
    Changes to default settings -
    Web browser being used -
    ...and anything else relevant -

    1st and 2nd step goes fine.
    On the third step, since I am installing on yahoo web hosting directly there is no such thing as port.
    Mysql connection is possible only through socket.
    Is there a way where in connection can be configured using socket instead of port? (some setting in config.inc.php?)

    Let me know how I should go about this.
    Thanks,
    Sachin

  • 2009-08-17 14:17:02

    Re: Installing on webhost with no port for mysql

    I don't understand how there can be no ports. There isn't a way to connect directly to the mysql socket.

    Have you tried installing and leaving the port field empty?

  • 2009-08-17 22:48:46

    Re: Installing on webhost with no port for mysql

    hi greg,

    Thanks for quick reply.
    Yahoo hosting did have port. The host to be given is "mysql" instead of "localhost". Domain name is also not allowed.

    But my previous experience with hosting services is
    they close port for security reasons.

    I gone through your connect code, its perfectly fine if somebody provides socket information instead of port in the DB_PORT field. As it wont matter much if you look at
    http://in2.php.net/function.mysql-connect

    You can actually put the label in the form as
    PORT/SOCKET

    Thanks,
    Sachin