<\/figure><\/div>\n\n\n\nLearn more about Bitnami for XAMPP<\/em> will be checked. Uncheck that, unless you really<\/em> need to know.<\/p>\n\n\n\nBitnami is fine, but I prefer to keep things simple. Fewer things to break.<\/p>\n\n\n\n
Click \"Next\".<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n\nNow everything's ready to go, click \"Next\".<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n\nXAMPP will install to your computer. Just let it complete the installation process.<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n\nIf all goes well, you'll see an installation confirmation.<\/p>\n\n\n\n
Make sure Launch XAMPP<\/em> is checked, then click \"Finish\".<\/p>\n\n\n\n <\/figure><\/div>\n\n\n\nYou'll see the XAMPP control panel.<\/p>\n\n\n\n
If you want to build a WordPress site on your local machine, you'll need to start MySQL Database<\/em> and Apache Web Service<\/em>.<\/p>\n\n\n\nJust click on them and click \"Start\".<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n\nAs long as they're both green, you're good to go.<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n\nA WordPress website is a combination of the files in htdocs and a MySQL database. Each WordPress installation will be under their own folder in htdocs and have their own separate MySQL database.<\/p>\n\n\n\n
For future reference, you can access XAMPP by going to the Launchpad and clicking manager-osx<\/em>. This was originally in a folder called \"XAMPP\", but I moved it for convenience.<\/p>\n\n\n\n <\/figure><\/div>\n\n\n\nHow to access your local website<\/h2>\n\n\n\n Create a folder in htdocs called \"example\". Then create a database called example. Connect them with the wp-config.php<\/em> settings later in this tutorial.<\/p>\n\n\n\nOpen a web browser (Safari, Chrome, Firefox, whatever you usually use) and go to http:\/\/localhost\/example\/<\/p>\n\n\n\n
You'll find your example website ready at that location. You can create multiple websites in localhost. Just access them through the folders as above. Logins will be through \/wp-admin\/ as normal.<\/p>\n\n\n\n
You can setup accounts for multiple users as you would with any WordPress installation.<\/p>\n\n\n\n
You don't need internet access to use your local websites. However, you will need an internet connection to download updates to your plugins, themes or core installation.<\/p>\n\n\n\n
Do you use FTP with Localhost?<\/h2>\n\n\n\n Because all the files are on your Mac and not on an external server, you don't need to use FTP to make code changes to the files on your websites.<\/p>\n\n\n\n
You just need to open the files from their folders with a text editor like Atom. When you save the code and refresh the browser, you will see the changes take effect immediately.<\/p>\n\n\n\n
What is the default XAMPP MySQL login?<\/h2>\n\n\n\n The default XAMPP MySQL login is:<\/p>\n\n\n\n
Username: root<\/li> Password is blank<\/li><\/ul>\n\n\n\nThat's right, there is no default password for XAMPP MySQL.<\/p>\n\n\n\n
The relevant section of your wp-config.php<\/em> file will be something like this:<\/p>\n\n\n\n\/\/ ** MySQL settings - You can get this info from your web host ** \/\/\n\/** The name of the database for WordPress *\/\ndefine( 'DB_NAME', 'example' );\n\n\/** MySQL database username *\/\ndefine( 'DB_USER', 'root' );\n\n\/** MySQL database password *\/\ndefine( 'DB_PASSWORD', '' );\n\n\/** MySQL hostname *\/\ndefine( 'DB_HOST', 'localhost' );<\/code><\/pre>\n\n\n\nHow to change the default MySQL password for XAMPP<\/h2>\n\n\n\n It's not the best idea to have a blank password for database access, even if it's only on your own computer.<\/p>\n\n\n\n
It's pretty easy to change the default MySQL password.<\/p>\n\n\n\n
You can use this process if you ever forget your password too.<\/p>\n\n\n\n
Go to http:\/\/localhost\/dashboard\/<\/em><\/p>\n\n\n\nClick phpMyAdmin<\/em>.<\/p>\n\n\n\n <\/figure><\/div>\n\n\n\nChoose the User accounts<\/em> tab.<\/p>\n\n\n\nLook for the root<\/em> user, then click Edit privileges<\/em>.<\/p>\n\n\n\n <\/figure><\/div>\n\n\n\nClick Change password<\/em>.<\/p>\n\n\n\n <\/figure><\/div>\n\n\n\nEnter a password into the Enter<\/em> and Re-type<\/em> fields, then click \"Go\".<\/p>\n\n\n\nIn this instance, I just used \"pass\".<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n\nFinal step, to make sure the password change takes effect, go to the XAMPP control, select MySQL Database<\/em> and click \"Restart\".<\/p>\n\n\n\n <\/figure><\/div>\n\n\n\nIf you already have any WordPress installations on the computer, be sure to update the wp-config.php<\/em> file.<\/p>\n\n\n\n\/\/ ** MySQL settings - You can get this info from your web host ** \/\/\n\/** The name of the database for WordPress *\/\ndefine( 'DB_NAME', 'example' );\n\n\/** MySQL database username *\/\ndefine( 'DB_USER', 'root' );\n\n\/** MySQL database password *\/\ndefine( 'DB_PASSWORD', 'pass' );\n\n\/** MySQL hostname *\/\ndefine( 'DB_HOST', 'localhost' );<\/code><\/pre>\n\n\n\nMySQL Error Cannot Connect: Invalid Settings<\/h2>\n\n\n\n If you try to connect to phpMyAdmin right now, you'll get an error message saying MySQL cannot connect: invalid settings<\/em>.<\/p>\n\n\n\nYou'll also see mysqli_real_connect(): (HY000\/1045): Access denied for user 'root'@'localhost' (using password: NO)<\/em>.<\/p>\n\n\n\n <\/figure><\/div>\n\n\n\nThis happens because you changed the password for the root<\/em> user.<\/p>\n\n\n\nHow to fix XAMPP phpMyAdmin access denied after changing root password<\/strong>:<\/p>\n\n\n\nOpen \/xampp\/phpmyadmin\/config.inc.php<\/em> in a text editor<\/li>On or about line 31, add a password inside the quotes<\/li> Save the file and restart MySQL<\/li><\/ul>\n\n\n\nLet's go through those steps. Go to \/xampp\/phpmyadmin\/<\/em> and open config.inc.php<\/em> in a text editor.<\/p>\n\n\n\nI'm using Atom for this, but any text editor will be fine.<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n\nScroll down a little. In my version, it's line 31.<\/p>\n\n\n\n
Look for<\/p>\n\n\n\n
$cfg['Servers'][$i]['password'] = '';<\/code><\/pre>\n\n\n\nInside the single quotes, put the password you created for the root<\/em> user.<\/p>\n\n\n\nIt should look something like<\/p>\n\n\n\n
$cfg['Servers'][$i]['password'] = 'pass';<\/code><\/pre>\n\n\n\nSave the file.<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n\nRestart MySQL for good measure and you'll be able to login.<\/p>\n","protected":false},"excerpt":{"rendered":"
If you want to install WordPress on your local machine, you have a number of software options, like XAMPP, MAMP or Local by Flywheel. I prefer to use XAMPP because it’s been around for ages (so it’s stable and has a lot of tutorials), I can use it on my Windows, Mac and Linux machines,<\/p>\n","protected":false},"author":2,"featured_media":956,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"yoast_head":"\n
Install XAMPP on Mac - Step By Step Instructions<\/title>\n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n\t \n\t \n\t \n