Results 1 to 4 of 4
  1. #1

    * Connect to MySQL failed (ASAP please!)

    Hi there,

    I have problem to connect my phpcode with MySQL database.
    You can see in http://www.sriwijaya.com/tes.php to know the problem.

    It told that it failed to connect to /tmp/mysql.sock. I dont know how to fix it.

    Anybody can help me?

    Beside that i have a problem to create password for root to connect MySQL. i tried to change .pid file but it failed. Please give how to change it.

    Does this problem has connected with my problem above?

    By the way, i use Cobat RAQ4.

    I really need this information ASAP and thank you very much.

  2. #2
    <sarcasm>Wow. Your problem must be solved ASAP. You must be very important.</sarcasm>

    http://www.mysql.com

    Check it out.

    ...uuuggghhh... OK. I can't resist. MySQL is down, just like your page says. /etc/rc./init.d/mysqld start maybe?

  3. #3
    Join Date
    Apr 2001
    Location
    Paradise
    Posts
    12,052
    did you deleted mysql.sock? or never has been there?
    Also, can you try ?
    locate mysql.sock

    And paste the resoult here.
    Shared Web Hosting - Reseller Hosting - Semi-Dedicated Servers - SolusVM/XEN VPS
    LiteSpeed Powered - R1Soft Continuous Data Protection - 24/7 Chat/Email/Helpdesk Support
    Cpanel/WHM - Softaculous - R1soft Backup - Litespeed - Cloudlinux -Site Builder- SSH support - Account Migration
    DowntownHost LLC - In Business since 2001- West/Center/East USA - Netherlands - Singapore

  4. #4
    Join Date
    Aug 2001
    Location
    California
    Posts
    1,211
    well from the looks of things it appears that php was not compiled in with mysql support. For some unknown reason I went to http://www.sriwijaya.com/test.php and got your phpinfo page. Send in a ticket to your host, or if you admin your server you need to recompile php with mysql support.

Posting Permissions

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