I downloaded xampp v1.8.3 and downloaded mediawiki via git bash using "git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git" I extracted "core" to htdocs in xampp file directory, opened xampp control and started apache and mysql. I copied the index of DefaultSettings.php and created a LocalSettings.php with the same index as DefaultSettings.php. Then changed DBuser to root and password to two single quotes in a row (i do not have password for root user and wiki doesn't show two blank single quotes). In the installation guide, it says that "If you already have a database server and know the root password for it, the MediaWiki installation script can create a new database for you." yet when I type localhost/core/index.php, I get an error like this:
Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.
(Cannot contact the database server)
Additionally, I tried to create db by myself with the following code:
create database wikidb; (I also changed the DBname in LocalSettings.php) grant index, create, select, insert, update, delete, alter, lock tables on wikidb.* to 'root'@'localhost' identified by ; (again there are two single quotes in a row after identified by)
mysql creates db yet returns an empty result set.(I think this means that granting was unsuccessful)
After creating db, localhost/core/index.php gives the following error:
"A database query error has occurred. This may indicate a bug in the software."
What should I do? Thank you guys in advance:)