Re:DB function failed with error number 1146
Yes this error relevant to joomla database which should have created with click apps installation. What about other click apps are they working fine ?
Either php is not configure properly to connect mysql extension in the php.ini setting. Or mysql server itself suffer with proper privileges.
Try to give this command in the mysql server
mysql -u root -p
execute this command
grant all privileges on *.* to root@localhost identified by 'root-password',root identified by 'root-password' with grant option;
Note: root-password = mysql root user password.