Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6794769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:15:43+00:00 2026-05-26T18:15:43+00:00

I’m using Netbeans 7.0.1 in a PHP project. I’ve installed XAMPP 1.7 in Windows

  • 0

I’m using Netbeans 7.0.1 in a PHP project.

I’ve installed XAMPP 1.7 in Windows 7 64 bits with the installer we can find in xampp.org.
I’ve changed the port of apache from 80 and 443 to 81 and 442 since I’m using IIS as well.
I didn’t installed anything as a service, I’m using the Control Panel to start/stop mysql, apache, etc.

My problem is that my unit test are failing, and the context is that I’m developing the project with two guys who are working on Macs.

They have a configuration file with a line like this:

database_socket = /var/run/mysqld/mysqld.sock

My unit test are failing and they told me that one of them had the very same issue and changing that path to the correct one fixed his problem.

Now, Where is that file in the Windows XAMPP? I made a search in the whole hard drive (I know mysql must be running for that file to exists, and yes, it is running :)) and I couldn’t find it.

This guy is using a file named Parameters.ini where the socket path is specified then he call $container = $kernel->getContainer(); and the database seems to be instantiated.

I tried to changed that file (parameters.ini) which has right now this:

database_host = localhost
database_socket = /var/run/mysqld/mysqld.sock
database_user = user
database_password = pass
database_schema = lad

but if I remove database_socket it complains.

I tried to follow the instructions here: http://www.devside.net/guides/windows/mysql
Setup (changing www with xampp)

Unpack as C:\www\mysql-5.1.56-win32

Rename directory C:\www\mysql-5.1.56-win32 to C:\www\mysql

Copy MySQL configuration file C:\www\mysql\my-medium.ini (or your choice of one of the other included my-*.ini files) to your %SYSTEMROOT% directory

Rename file %SYSTEMROOT%\my-medium.ini (or the copied over my-*.ini file) to my.ini

Edit %SYSTEMROOT%\my.ini

Under Sections “[client]” and “[mysqld]”, edit…

socket = C:/www/tmp/mysql.sock

Under Section “[mysqld]”, insert…

basedir = C:/www/mysql/
datadir = C:/www/mysql/data/

Restarted mysql, but nothing happened.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:15:44+00:00Added an answer on May 26, 2026 at 6:15 pm

    The solution is to put the socket line with an empty value.

    socket = ""
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
Seemingly simple, but I cannot find anything relevant on the web. What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.