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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:22:54+00:00 2026-06-16T02:22:54+00:00

a two week server n00B here. I want to edit my website on my

  • 0

a two week server n00B here.

I want to edit my website on my local machine. I’m doing this cos I can’t afford programmers at the moment… they have done everything up until now.

I have downloaded the /var/www/ directory to my local machine and I am trying to view the site through localhost on my Mac.

When I do I get the message:

Database connection error (2): Could not connect to MySQL.

Do I need to have the var/lib/mysql/ directory locally for the site to run? Am I going the right way about this?

Additionally I haven’t permission to the mysql directory on the server, the user is “mysql”. I don’t know how to change this as I can’t connect to the ubuntu AWS server through Mindterm… but that’s another story.

  • 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-16T02:22:55+00:00Added an answer on June 16, 2026 at 2:22 am

    In your case the website is made of two components. The Webspace, that’s what you downloaded, and a database. You can’t just copy the files of a database! You have to make a backup ( look for mysqldump on how to do that).

    On your Mac you will need a Webserver and a Database-Server. For Endusers like you this is easiest done by using MAMP or XAMPP (i prefer xampp). Both packages provide an full equipped Webserver together with an MySQL Database-Server. You will have to stop the Webserver of OS X to work best with MAMP or XAMPP.

    You then have to put your Webspace-Data in the htdocs of your local Webserver and you have to load the Backup of MySQL into the MySQL-Server you installed with MAMP or XAMPP. Both Backups MySQL and Webspace have to be of the same date of backup!

    Each of those websites do have one or more config-files containing your URL, User&Password for MySQL etc. you will have to edit those files to work properly on your local server instead of searching for those services in the web.

    So it is not an easy way to have a local working copy!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two table emptable1(empid,status) emptable2(empid,week) i want to select all the empid whose
Two related questions. First: does this repro for you or is it something local
I made the following function in SQL Server 2008 earlier this week that takes
We've been investigating this issue for a week now. We have two applications deployed
I'm working through some android tutorials right now in preparation for a two week
From wikipedia : During each sprint, typically a two to four week period (with
I'm working with Websphere Portal and Oracle. On two occasions last week, I found
Two questions only: I have a website including a section of Blog in wordpress.
I have a SQL Server database with two values I'm interested in: dtime -
I am trying to fetch records based on two dates from sql server... Select

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.