Hi,
I am doing some work on a site powered my modx. I am really liking Modx, but I am trying to find the source of this problem:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Failed to select the database ’web182-isc’! »
I looked in my config.inc.php file and the database name is the correct one that I can see in mysql. It the one set here I presume: $dbase
I don’t know where modx is trying to get web182-isc from as the database doesnt exist.
Can anyone point me in the right direction please?
Thanks
John
-
MODX Staff
- 10,725 Posts
Sounds like a Snippet being executed which is trying to connect to that database specifically perhaps? If it’s not referenced in the config.inc.php, it pretty much has to be in a script that was added to the site.
-
☆ A M B ☆
- 3,112 Posts
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - INSERT command denied to user \’mpkrocom\’@\’localhost\’ for table \’mpkrocom_main_event_log\’ »
SQL: INSERT INTO `mpkrocom_main`.`mpkrocom_main_event_log` (eventid,type,createdon,source,description,user) VALUES(0,3,1293760195,\’Parser\’,\’\\n \\n \\n \\n \\n
You should install MODx on your server properly.
Check your database settings, especially the username/password.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
☆ A M B ☆
- 24,524 Posts
Be especially careful when creating a database and the user for it; make sure the user has all of the necessary privileges on the database.
http://dev.mysql.com/doc/refman/5.5/en/privilege-system.html