Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how do I change the mysql access socket?

    I'm using php 5 and mysql 5.0.67. php wants to access it using

    'MYSQL_UNIX_ADDR ="/var/mysql/mysql.sock" which is set in a c header file

    mysql uses MYSQL_UNIX_ADDR = "/tmp/mysql.sock"

    how do I configure php to use the correct file?

  • #2
    New Coder
    Join Date
    Oct 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    resolved

    changed in /etc/php.ini, in the section [MySQL] from:

    mysql.default_socket = /var/mysql/mysql.sock

    to

    mysql.default_socket = /mysql/mysql.sock

    then restarted apache


  •  

    Posting Permissions

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