Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Thanks so much! I tried clicking the "set.." button, but no change... Don't think I'm doing anything with cloud stuff... Where do I put my username and password in?? I'll check out the other options in the link... Thanks,
Greg, You should be able to turn on the MySQL Server by clicking the "Start Servers" icon in the MAMP dialog window, or by going to Servers > Start in the top menu. (If the icon or menu say "Stop Servers" instead, click "Stop," wait a few seconds for the servers to stop, then click "Start" again.
Try this: this continues to be a problem, and you haven't done any custom configuration in your MAMP environment that you couldn't easily reproduce, I might suggest you simply re-download and reinstall MAMP fresh. The reinstall should persist anything in your htdocs folder and even keeps your databases if you had any (double-check that so I don't steer you wrong if it matters).This just seems like it's gotten buggy enough that a fresh start might be easiest. MAMP is usually really smooth and "just works" out of the box.
Tried to reset ports to default and to mamp's recommended config, doesn't help at all. Even after simple reinstall, nothing works. Need to 'clean' delete and then reinstall, which means database wiped. Worst part is, there is no way to get in and backup the database beforehand.
So if anybody can help me I would truly be grateful.Because I have spent all day yesterday and hours trying to fix the problem.Im thinking about just get new WordPress.org account and reinstall everything.
2.I was running Mamp with a different port numbers which allowed me to run mamp at first and when Mamp was running I pressed the default port button in the middle of the running Mamp.I guess it might only run with my original port numbers for a reason.
Based on your description, it sounds like you were trying to create an additional website using WordPress, and you encountered several errors while duplicating the WordPress file on your local server. You then tried to use Mamp to resolve the issues, but were unsuccessful.
If you are still experiencing issues with your website, you may want to consider creating a new WordPress account and starting over. However, before doing so, you should ensure that you have backed up any important files and data related to your website.
Alternatively, you can try troubleshooting the errors you are encountering by seeking help from WordPress support forums or reaching out to a professional developer for assistance. They may be able to help you identify the root cause of the errors and provide a solution to fix them.
Installation is mostly a matter of downloading the correct package and answering a few simple prompts. After installation, the XAMPP control panel allows you to start various services, change your configuration, and so on.
Laragon is a lightweight local development environment that supports multiple PHP versions, Apache, Nginx, MySQL, and more. Laragon Portable is a stripped-down version that includes PHP 5.4, MySQL 5.1, and bitmana, and allows you to add newer versions of PHP and MySQL later. Laragon is an open source project, and both versions are available free of charge.
Local is a cross-platform application and supports all major operating systems. It does a great job isolating its software, and you can even use Local alongside something like MAMP or XAMPP. You can also configure different MySQL/PHP versions per site while creating it, with the option to download different versions.
Blueprints are WordPress site packages that include themes, plugins, configured pages, site settings, etc. Naturally, your Blueprints can include your own plugins and custom themes as well. This is an incredible savings in time if you find yourself creating a lot of similar sites. You can [create a Blueprint] from any site in Local, or use a prebuilt one like the Frost Blueprint for Local. The Atlas Add-on gives you access to Atlas Blueprints to quickly create headless WordPress sites.
Mike is an editor and writer based in Hamilton, Ontario, with an extensive background in business-to-business communications and marketing. His hobbies include reading, writing, and wrangling his four children.
On Windows, Laragon is pretty amazing. It has a GUI for installing WordPress as well as lots of other software. It automatically creates virtual hosts, allows you to send & catch test emails, and switch versions of PHP / Apache / MySQL easily. It creates an isolated environment with many things already installed and available via command line: Git, Node.js, NPM, SSH, xDebug, Composer, etc. Definitely worth a look..
I use Bitnami Stacks to do local installs: and it is simple enough that I can have non-technical folks install and use it as a safe way to learn WordPress, or one of the many many other stacks Bitnami provides. They provide the same setup as a VM, Docker container or even a direct install to a cloud provider. A few of these are new to me though, so thanks for the intro!
The latest version (as of April 2018) uses PHP v.7. No longer a sore point for them, and their customer support have proven to be more than competent, offering remote maintenance (by their engineers) of my local site when I had an issue. They have been brilliant in my book. The software has its glitchy moments, however. Otherwise, I think 4/4.5 is justified.
WAMP is significantly better solution than XAMP. WAMP enables switching between versions of PHP, apache, mysql just by a single click (windows services will restart automatically via console script). This is a highly appreciated feature for development.
Hi, thanks for this, have you experienced any issues with local and db migrate pro? I normally use mamp but used local for first time recently and got some ajax errors pushing the theme to a remote server (database was OK), of course these errors may not be down to local could be plugins etc but just wondered if you knew of anything that might be a problem such as the way local stores the sites in a app folder?
What if you want to local dev the same site on your desktop and laptop? (I use LocalWP.) Sure git can sync /wp-content easily enough, but what about the db? It seems the only solutions to sync db are manual.
Works well for WordPress and many other stacks as well. It makes it extremely easy to have a complex set of containers to integrate many services into a local development environment with easy setup for team members.
c01484d022