Results 1 to 10 of 10

Thread: phpBB installation problem

  1. #1

    phpBB installation problem

    i got this problem when installing phpBB:

    Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /www/htdocs/forum/db/mysql4.php on line 48

    Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /www/htdocs/forum/db/mysql4.php on line 330

    Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /www/htdocs/forum/db/mysql4.php on line 331
    phpBB : Critical Error

    Could not connect to the database

    -------------------------------------------------------
    my MySQL is up in running. i can connect through the console. im using the default mysql app of slackware 10. phpmyadmin is working also. but before when i was trying to install phpmyadmin i encountered a problem.

    Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

    and i noticed that the default is /var/run/mysql/mysql.sock. i changed the config of my phpmyadmin and it works. Do you think it has the same problem with my phpBB?
    :: nocturnal taciturn ::

  2. #2

    phpBB installation problem

    Looks like a permissions problem. Does the mysql process have read/write access to that directory?
    To err is human, to moo bovine.

  3. #3

    phpBB installation problem

    yes mysql has the read/write permission
    :: nocturnal taciturn ::

  4. #4

    phpBB installation problem

    eu

    /etc/my.cnf

    look at the "socket =" portion.
    To err is human, to forget your password is simply stupid.

  5. #5

    phpBB installation problem

    i look at it and it is:

    socket = /var/run/mysql/mysql.sock

    when i changed the config of my phpmyadmin to the default socket of MySQL and my installation works fine.

    do you know where i can change the /tmp/mysql.sock on phpBB? maybe this could be the problem.
    :: nocturnal taciturn ::

  6. #6

    phpBB installation problem

    Your problem could lie in your php.ini.

    Open up your php.ini and locate the file:

    Code:
    mysql.default_socket =
    In most cases it should be left blank, but you can change it.
    To err is human, to moo bovine.

  7. #7

    phpBB installation problem

    php.ini
    Code:
    mysql.default_socket = /var/run/mysql/mysql.sock
    To err is human, to forget your password is simply stupid.

  8. #8

    phpBB installation problem

    are you using mysql 4.02d? mysql 4.02d has no *.cnf.
    try using lower version with no install.

  9. #9

    phpBB installation problem

    im using the the default MySQL of slack 10. it's working now already. :P
    :: nocturnal taciturn ::

  10. #10

    phpBB installation problem

    Quote Originally Posted by root
    im using the the default MySQL of slack 10. it's working now already. :P
    Slackware was the solution after all. hah.
    To err is human, to moo bovine.

Similar Threads

  1. installation problem in KDEWEBDEV-3.5.6
    By vamsi dhar in forum Redhat / Fedora
    Replies: 2
    Last Post: 03-28-2007, 02:02 PM
  2. [HELP]ASP.NET 1.1 Installation Problem
    By Jason Lu in forum Windows - General Topics
    Replies: 3
    Last Post: 08-12-2005, 02:22 PM
  3. Mandrake installation problem
    By tedh in forum Linux - General Topics
    Replies: 25
    Last Post: 01-06-2005, 02:05 AM
  4. RH7.3 During Installation problem
    By biatche in forum Redhat / Fedora
    Replies: 7
    Last Post: 07-13-2002, 04:15 AM
  5. Installation problem
    By Cintrik in forum Suse
    Replies: 1
    Last Post: 06-22-2002, 10:48 PM

Bookmarks

Posting Permissions

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