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 8864685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:18:21+00:00 2026-06-14T16:18:21+00:00

I´m trying to install Silverstripe on a Server with the MySQL Connection Details like

  • 0

I´m trying to install Silverstripe on a Server with the MySQL Connection Details like following:

Hostname localhost:/tmp/mysql5.sock

Socket /tmp/mysql5.sock

Entering one of these addresses in the Install Form for Database server brings up following error on submit for localhost:/tmp/mysql5.sock:

I couldn't find a database server on 'localhost:/tmp/mysql5.sock': Connection refused"

or for /tmp/mysql5.sock

I couldn't find a database server on '/tmp/mysql5.sock': php_network_getaddresses: getaddrinfo failed: Name or service not known

and just localhost shows this error:

I couldn't find a database server on 'localhost': Connecting to 3.22, 3.23 & 4.0 servers is not supported

Thanks,
Florian

  • 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-06-14T16:18:23+00:00Added an answer on June 14, 2026 at 4:18 pm

    Basically, there was something wrong with the server settings:

    This is what I added to _config.php:

    ini_set('mysqli.default_socket', '/tmp/mysql5.sock');
    

    then the db connection looked like this:

    $databaseConfig = array(
        "type" => 'MySQLDatabase',
        "server" => 'localhost',
        "username" => 'myusername',
        "password" => 'mypassword',
        "database" => 'mydb',
        "path" => '/tmp/mysql5.sock',
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to install mysql-python. Got following error. Got mysql and pythond already installed. Any
Trying to install Gitolite on a Media Temple DV server following these instructions .
Trying to install Symfony 1.4.11 application on Ubutnu Server + Nginx + php-fpm Nginx
When trying to install the ADT plugin following Android Developper Site' instructions on a
I'm trying install pycrypto on osx with easy_install and I'm getting the following error:
Trying to install the php-rsync module using pecl and I'm receiving the following errors:
When trying to install a package in R I get the following odd error
I am trying to install a package from github, but keep getting the following
I got the following error/warning while tring to install Kohana/SilverStripe. What does it mean
I am trying install dataimport handler in solr 3.3 for connecting mysql db to

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.