Mac OS X Database initialization trouble

Author Message

Jonas B Holten

Sunday 12 December 2004 3:40:32 pm

I have trouble with my eZ publish setup, it stops at Database initialization.

The error message is:
"The database would not accept the connection, please review your settings and try again."

My setup is like this:

mysql Ver 14.7 Distrib 4.1.7, for apple-darwin7.5.0 (powerpc)
Apache/1.3.28
PHP Version 4.3.2

I have created (several) databases and granted permissions (all). When the wizard tries to connect to the database it just stops with the same error message.

I am not sure if this can have anything to do with the php.ini file, but I have also changed these settings:
max_execution_time = 90 ; Maximum execution time of each script, in seconds
max_input_time = 120 ; Maximum amount of time each script may spend parsing
request data
memory_limit = 32M ; Maximum amount of memory a script may consume (8MB)

 

I will appreciate any suggestions.

--
Jonas B Holten

Kåre Køhler Høvik

Tuesday 14 December 2004 3:23:29 pm

Please see this thread : http://ez.no/community/forum/install_configuration/kernel_50_on_solaris_mysql_4_1_7_ez_3_4_3 .

The problems might be related.

Kåre Høvik

Jonas B Holten

Tuesday 21 December 2004 2:59:55 pm

Thanks for the tip, I fixed the problem this way:

I used the tip from this thread:
http://ez.no/community/forum/install_configuration/kernel_50_on_solaris_mysql_4_1_7_ez_3_4_3

--
Open your MySQL configuration file, locate the [mysqld] section and add "old_passwords" on a new line. Restart your MySQL server.
Now open a MySQL console and execute the following to reset the password to the "old" method:
--

The only problem is finding the nonexisting my.cnf file. Google helped me find the answer, I had to make a new file called my.cnf placed in /etc/

I added old_password to a "typical global conf file":
(From http://dev.mysql.com/doc/mysql/en/Option_files.html )


[client]
port=3306
socket=/tmp/mysql.sock

[mysqld]
port=3306
socket=/tmp/mysql.sock
key_buffer_size=16M
max_allowed_packet=8M
old_password

[mysqldump]
quick

After this I updated mysql:

USE mysql;
UPDATE user SET Password = PASSWORD('<your password>') WHERE User = '<your username>';

Just to be sure I restarted the machine, and like magic, it worked:)

Best regards
Jonas B Holten
(looking forward to a christmas testing ezpublish)

--
Jonas B Holten

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 19:06:02
Script start
Timing: Jan 18 2025 19:06:02
Module start 'layout'
Timing: Jan 18 2025 19:06:02
Module start 'content'
Timing: Jan 18 2025 19:06:03
Module end 'content'
Timing: Jan 18 2025 19:06:03
Script end

Main resources:

Total runtime0.9549 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0127 588.0703152.6406
Module start 'layout' 0.01280.0054 740.710939.4766
Module start 'content' 0.01820.9350 780.1875542.1094
Module end 'content' 0.95320.0016 1,322.296912.1250
Script end 0.9548  1,334.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.4468160.0003
Check MTime0.00150.1602160.0001
Mysql Total
Database connection0.00320.339110.0032
Mysqli_queries0.874991.6197570.0153
Looping result0.00070.0719550.0000
Template Total0.883692.520.4418
Template load0.00220.226420.0011
Template processing0.881592.310220.4407
Template load and register function0.00010.014910.0001
states
state_id_array0.00240.248710.0024
state_identifier_array0.00290.306920.0015
Override
Cache load0.00210.2248400.0001
Sytem overhead
Fetch class attribute can translate value0.00190.200620.0010
Fetch class attribute name0.00180.191540.0005
XML
Image XML parsing0.00090.095920.0005
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00280.2942150.0002
String conversion0.00000.001340.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs