XAMPP - Start/Stop Apache, MySQL and change root password (MySQL) on MACOS

/*---------------------------------------*/

/* start/stop XAMPP

/*---------------------------------------*/

1. Open Terminal

2. cd /Applications/XAMPP/xamppfiles

3. sudo ./xampp start

4. sudo ./xampp stop

** sudo ./xampp startapache

** sudo ./xampp startmysql 


** sudo /Applications/XAMPP/xamppfiles/xampp start

** sudo /Applications/XAMPP/xamppfiles/xampp status

** sudo /Applications/XAMPP/xamppfiles/xampp help


/*---------------------------------------*/

/* mySQL - change root password

/*---------------------------------------*/

1. Open Terminal

2. /Applications/XAMPP/xamppfiles/bin/mysql -u root

3. SET PASSWORD FOR 'root'@'localhost' = PASSWORD('lemonade');


/*---------------------------------------*/

/* mySQL - create new user

/*---------------------------------------*/

1. Open Terminal

2. /Applications/XAMPP/xamppfiles/bin/mysql -u root -p

3. CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';

4. login to phpMyAdmin to assign privilledge


/*---------------------------------------*/

/* phpMyAdmin

/*---------------------------------------*/

Set phpMyAdmin to login with password.


1. Go to > Applications > XAMPP > xamppfiles > phpmyadmin > config.inc.php

2. Edit config.inc.php file 

    2.1 Set Read & Write to everyone

    2.2 Edit config.inc.pho and save

3. Set everyone back to Read Only


Popular posts from this blog

SAP CPI - Loop Process Call with SuccessFactor (oData V2)

Setting IntelliJ IDEA to run Groovy Script

C# - BASE64 to Image