Access Denied for user @localhost

Author Message

Commando Rambo

Monday 19 January 2004 6:38:48 pm

Have just reinstalled ezPublish 3.2 as i made a mistake in the tutorial provided. Installation completed by ignoring a couple of errors which came up about not being able to edit some dlls. Install completed, but when I try to log into the admin_page with the username admin and pwd publish it doesn't recognise it. I then went into mysql and asked it to show me the databases and tables i had. when i tried to access the table plain, it says "access denied for user @localhost. Any idea's on why this is happening? NOTE: was working the first time I installed, but error started appearing after an uninstall and reinstall.

James Packham

Tuesday 20 January 2004 1:57:26 am

The "user @localhost" bit suggests you didn't enter a username when you ran mysql. You want to enter something like:

mysql -u root -p

This will prompt you for your database password.

Once you're in you should be able to show your databases etc.

Next seeing as its a fresh install and you've nothing to lose in your database, you may as well just restore the cleandata:

mysql -u root -p[database-password] plain < [path-to-ezpublish]/kernel/sql/mysql/cleandata.sql

Should do it and restore 'publish' as your admin password.

Regards,

James

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:14:37
Script start
Timing: Jan 19 2025 04:14:37
Module start 'layout'
Timing: Jan 19 2025 04:14:37
Module start 'content'
Timing: Jan 19 2025 04:14:38
Module end 'content'
Timing: Jan 19 2025 04:14:38
Script end

Main resources:

Total runtime1.4018 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 590.4141152.6406
Module start 'layout' 0.00620.0047 743.054739.4766
Module start 'content' 0.01091.3889 782.5313491.4297
Module end 'content' 1.39990.0019 1,273.96098.1406
Script end 1.4017  1,282.1016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2564160.0002
Check MTime0.00140.0969160.0001
Mysql Total
Database connection0.00120.083710.0012
Mysqli_queries1.344895.9382540.0249
Looping result0.00070.0472520.0000
Template Total1.348596.220.6742
Template load0.00200.143620.0010
Template processing1.346496.054620.6732
Template load and register function0.00020.017110.0002
states
state_id_array0.00210.148710.0021
state_identifier_array0.00300.212720.0015
Override
Cache load0.00160.1170150.0001
Sytem overhead
Fetch class attribute can translate value0.00100.071420.0005
Fetch class attribute name0.00160.116430.0005
XML
Image XML parsing0.00830.593320.0042
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00840.5997160.0005
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs