The following were the o/p of both the commands
sudo yum install php-mysql
Loaded plugins: rhnplugin, security
There was an error communicating with RHN.
RHN support will be disabled.
Error communicating with server. The message was:
Error Message:
Please run rhn_register as root on this client
Error Class Code: 9
Error Class Info: Invalid System Credentials.
Explanation:
An error has occurred while processing your request. If this problem
persists please enter a bug report at bugzilla.redhat.com.
If you choose to submit the bug report, please be sure to include
details of what you were trying to do when this error occurred and
details on how to reproduce this problem.
Setting up Install Process
No package php-mysql available.
Nothing to do
sudo grep -Ri mysqli /etc/php*
;extension=php_mysqli.dll
[MySQLi]
;
http://php.net/mysqli.max-persistentmysqli.max_persistent = -1
;
http://php.net/mysqli.allow_local_infile;mysqli.allow_local_infile = On
;
http://php.net/mysqli.allow-persistentmysqli.allow_persistent = On
;
http://php.net/mysqli.max-linksmysqli.max_links = -1
;
http://php.net/mysqli.cache_sizemysqli.cache_size = 2000
; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
;
http://php.net/mysqli.default-portmysqli.default_port = 3306
;
http://php.net/mysqli.default-socketmysqli.default_socket =
;
http://php.net/mysqli.default-hostmysqli.default_host =
;
http://php.net/mysqli.default-usermysqli.default_user =
; Default password for mysqli_connect() (doesn't apply in safe mode).
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
;
http://php.net/mysqli.default-pwmysqli.default_pw =
mysqli.reconnect = Off