Reset rights on mysql tables

Author Message

Søren Knudsen

Tuesday 09 January 2007 2:22:40 pm

Hi there,

I have reached a pretty bad situation during a hard drive crash. I can basically see the tables fine, but it seems that the user rights to the database are gone.

I am running:

---
Server version: Apache/2.0.58
Server built: Jan 8 2007 22:39:26
---
PHP 4.4.4-pl6-gentoo
---

mysql Ver 14.12 Distrib 5.0.26, for pc-linux-gnu (i686) using readline 5.1
---

The system is Gentoo, compiled from 2006.1, stage3

Does anyone have a suggestion for what to try out?

Best regards,
Søren K
DK

Søren Knudsen

Thursday 11 January 2007 2:59:10 am

Nevermind. I had this stupid fault of not setting write permissions on subdirs and the files therein in /var/lib/mysql/. This did the trick:

chown -R mysql:mysql /var/lib/mysql/

I wasnt aware of all the subdirs and only by pure luck did I notice when I for the third time did an ls -l on the /var/lib/mysql/ dir did i notice it.

Thanks for the very nice product btw. I have been using EZ Publish for over a year now, and are liking it more and more for each day:)

Best regards
Søren Knudsen

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 18 2025 21:17:41
Script start
Timing: Jan 18 2025 21:17:41
Module start 'layout'
Timing: Jan 18 2025 21:17:41
Module start 'content'
Timing: Jan 18 2025 21:17:42
Module end 'content'
Timing: Jan 18 2025 21:17:42
Script end

Main resources:

Total runtime0.9552 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.0313152.6406
Module start 'layout' 0.00640.0034 740.671939.4766
Module start 'content' 0.00980.9438 780.1484428.0938
Module end 'content' 0.95360.0015 1,208.24228.1484
Script end 0.9552  1,216.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3956160.0002
Check MTime0.00140.1435160.0001
Mysql Total
Database connection0.00110.116810.0011
Mysqli_queries0.904094.6409520.0174
Looping result0.00060.0661500.0000
Template Total0.906994.920.4534
Template load0.00250.264320.0013
Template processing0.904394.672120.4522
Template load and register function0.00020.020410.0002
states
state_id_array0.00250.262210.0025
state_identifier_array0.00270.281120.0013
Override
Cache load0.00210.2178260.0001
Sytem overhead
Fetch class attribute can translate value0.00110.116810.0011
Fetch class attribute name0.00240.247420.0012
XML
Image XML parsing0.00030.030710.0003
class_abstraction
Instantiating content class attribute0.00000.001120.0000
General
dbfile0.00070.0752100.0001
String conversion0.00000.001040.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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs