The permission denied error is encountered when the script you are running does not have the execute permission. Let us look into the details of the error and also its solution. Modifying the permissions of the script or assigning the correct ones will fix the error. The error usually occurs when the script you are trying to execute does not have the necessary permissions. #20 /home/gjlxrtap/public_html/mw19/index.While executing programs in Unix, a common problem which is encountered is the bash. #19 /home/gjlxrtap/public_html/mw19/includes/WebStart.php(114): require_once(string) #18 /home/gjlxrtap/public_html/mw19/includes/Setup.php(762): MediaWiki\Session\SessionManager::getGlobalSession() #17 /home/gjlxrtap/public_html/mw19/includes/session/SessionManager.php(129): WebRequest->getSession() #16 /home/gjlxrtap/public_html/mw19/includes/WebRequest.php(735): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest) #15 /home/gjlxrtap/public_html/mw19/includes/session/SessionManager.php(190): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest) #14 /home/gjlxrtap/public_html/mw19/includes/session/SessionManager.php(487): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(WebRequest) #13 /home/gjlxrtap/public_html/mw19/includes/session/CookieSessionProvider.php(119): MediaWiki\Session\UserInfo::newFromId(string) #12 /home/gjlxrtap/public_html/mw19/includes/session/UserInfo.php(88): User->load() #11 /home/gjlxrtap/public_html/mw19/includes/user/User.php(405): User->loadFromId(integer) #10 /home/gjlxrtap/public_html/mw19/includes/user/User.php(441): User->loadFromCache() #9 /home/gjlxrtap/public_html/mw19/includes/user/User.php(521): WANObjectCache->getWithSetCallback(string, integer, Closure, array) #8 /home/gjlxrtap/public_html/mw19/includes/libs/objectcache/WANObjectCache.php(898): WANObjectCache->doGetWithSetCallback(string, integer, Closure, array, NULL) #7 /home/gjlxrtap/public_html/mw19/includes/libs/objectcache/WANObjectCache.php(1012): call_user_func_array(Closure, array) #5 /home/gjlxrtap/public_html/mw19/includes/libs/objectcache/WANObjectCache.php(892): User->(boolean, integer, array, NULL) #4 /home/gjlxrtap/public_html/mw19/includes/user/User.php(496): User->loadFromDatabase(integer) #3 /home/gjlxrtap/public_html/mw19/includes/user/User.php(1287): Wikimedia\Rdbms\Database->selectRow(string, array, array, string, array)
#2 /home/gjlxrtap/public_html/mw19/includes/libs/rdbms/database/Database.php(1411): Wikimedia\Rdbms\Database->select(string, array, array, string, array, array) #1 /home/gjlxrtap/public_html/mw19/includes/libs/rdbms/database/Database.php(1343): Wikimedia\Rdbms\Database->query(string, string) #0 /home/gjlxrtap/public_html/mw19/includes/libs/rdbms/database/Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) Query: SELECT user_id,user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_email_token,user_email_token_expires,user_registration,user_editcount FROM `gjlxrtap_mw19758`.`mwd50q_user` WHERE user_id = '1' LIMIT 1Įrror: 1142 SELECT command denied to user for table 'mwd50q_user' (localhost) Did you forget to run your application's database schema updater after upgrading? mw19/ Wikimedia\Rdbms\DBQueryError from line 1149 of /home/gjlxrtap/public_html/mw19/includes/libs/rdbms/database/Database.php: A database query error has occurred. However, I still got an access denied message for this database too. I also tried another way to create a database, by copying the structure only of the original database in order to create another database. If this is the correct way to set up a new database, then what do I need to do to gain access to the database? If cloning by exporting and importing is the incorrect way, then what should the database look like? I also cloned the information from the old database by exporting the data and importing it into the new one.
When I tried to create an additional database for a second wiki (Penguiconverter) after that second wiki couldn't have separate pages and files from the first wiki (Penguin Ice Wikis), I got the following error on that wiki: (Cannot access the database: Access denied for user (using password: YES) (localhost))