#1
  1. No Profile Picture
    chippus
    Guest
    Devshed Newbie (0 - 499 posts)
    MySQL works fine on linux prompt.
    PHP2 scripts works fine from web browser with
    Appache 1.3.9 PHP mod enablesd.

    Now I am trying to extent the PHP3 sript
    with MySQL functions, I am getting errors
    like this...

    Cannont access sever "localhost";..
    Can't access /tmp/mysql_sock..

    Any help ?
    Thanks in advance..
  2. #2
  3. No Profile Picture
    Robman
    Guest
    Devshed Newbie (0 - 499 posts)
    Try creating the file it's looking for manually as root.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 1999
    Location
    Tempe, AZ, USA
    Posts
    12
    Rep Power
    0
    you have to START your mysql server for the socket to appear - if your mysql is in /usr/local the command would be something like this:
    /usr/local/mysql/support-files/mysql.server start

    Make sure you have a valid user and password in your script that is trying to access mysql.
    -ken

Similar Threads

  1. PHP + MySQL query to make a link
    By emp/ir:kal in forum PHP Development
    Replies: 6
    Last Post: January 22nd, 2004, 12:10 PM
  2. Errcode:13 . How to solve it on MySQL + Windows 2000
    By hankycheng in forum MySQL Help
    Replies: 28
    Last Post: August 3rd, 2003, 10:05 AM
  3. VERY simple php mysql query and foreach?!
    By winddancer in forum PHP Development
    Replies: 7
    Last Post: April 18th, 2003, 10:35 AM
  4. Mysql query with php via an URL
    By justinl in forum MySQL Help
    Replies: 2
    Last Post: May 30th, 2002, 03:55 PM
  5. Special characters in Mysql query with PHP
    By Tervaaja in forum PHP Development
    Replies: 1
    Last Post: April 9th, 2001, 12:27 PM

IMN logo majestic logo threadwatch logo seochat tools logo