Results 1 to 2 of 2

Thread: Ok, I got that done now MySQL cannot connect to server!

  1. #1
    thesit37 is offline x10Hosting Member
    Join Date
    Jul 2012
    Posts
    3

    Ok, I got that done now MySQL cannot connect to server!

    I cannot connect to the server at all, I'm using this:
    $conn = mysql_connect("localhost:/tmp/mysql.sock","mysql_username","mysql_user_password" );
    mysql_select_db("mysql_database", $conn);

  2. #2
    Skizzerz's Avatar
    Skizzerz is offline Contributors
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,457

    Re: Ok, I got that done now MySQL cannot connect to server!

    just use localhost

    e.g. mysql_connect( "localhost", ...
    Ryan Schmidt | Contributor
    █ 888-X10-9668 - ryan[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

Similar Threads

  1. Replies: 0
    Last Post: 10-18-2011, 03:16 PM
  2. Replies: 1
    Last Post: 10-15-2010, 01:46 PM
  3. Replies: 2
    Last Post: 10-14-2010, 10:49 AM
  4. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
    By oracle in forum Scripts, 3rd Party Apps, and Programming
    Replies: 2
    Last Post: 12-17-2007, 03:00 AM

Posting Permissions

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