Forums / Install & configuration / Mac OS X Database initialization trouble

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

eZ debug

Timing: Jan 19 2025 15:17:28
Script start
Timing: Jan 19 2025 15:17:28
Module start 'content'
Timing: Jan 19 2025 15:17:29
Module end 'content'
Timing: Jan 19 2025 15:17:29
Script end

Main resources:

Total runtime0.7266 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.1094180.8047
Module start 'content' 0.00610.5919 769.9141547.2031
Module end 'content' 0.59800.1286 1,317.1172332.7344
Script end 0.7266  1,649.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5491210.0002
Check MTime0.00150.2049210.0001
Mysql Total
Database connection0.00100.144110.0010
Mysqli_queries0.641288.23981940.0033
Looping result0.00180.24371920.0000
Template Total0.691495.120.3457
Template load0.00210.282520.0010
Template processing0.689394.859920.3446
Template load and register function0.00010.018710.0001
states
state_id_array0.00110.146110.0011
state_identifier_array0.00120.165020.0006
Override
Cache load0.00180.2438400.0000
Sytem overhead
Fetch class attribute can translate value0.00120.163230.0004
Fetch class attribute name0.00080.112840.0002
XML
Image XML parsing0.00240.331030.0008
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.01001.3741260.0004
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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