If on Linux then it's quite straight forward,
============
#install httpd mysql php-mysql
#start service httpd mysqld
in mysql:
create database your-db;
grant all privilege on your-db.* to your-desired-mysql-username@localhost identified by 'password';
=============
save /var/www/html/yourpath/wp-config-sample.php as
/var/www/html/yourpath/wp-config.php
and modify the content below:
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'your-db');
/** MySQL database username */
define('DB_USER', 'your-desired-mysql-username');
/** MySQL database password */
define('DB_PASSWORD', 'password');
========
Usually this is enough