Forums / Install & configuration / MySQL connection problem

MySQL connection problem

Author Message

Olivier Ligny

Monday 07 November 2005 12:43:51 am

Hello,

I have a computer with Wamp installed, but stopped.
During the ezPublish installation process, there is a problem with MySQL :

<i><b>Installing MySQL: Service successfully installed.
Installing MySQL return: 0
Starting MySQL:
Le service MySQL a démarré (</i>Mysql started sucessfully<i>).
Starting MySQL return: 0
Creating databases: ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
Creating databases return: 1</b></i>

First I didn't see that problem (it's only in the install.log file). So I did continue the installation, and I started the configuration steps, I configured the SMTP server ... And then it said me : "The database would not accept the connection, please review your settings and try again."

I saw that the MySQL server wasn't started. So I try to enter "net start mysql" on my command-line, and I got again the following error :
<i><b>Le service MySQL démarre.
Le service MySQL n'a pas pu être lancé.
Une erreur système s'est produite.
L'erreur système 1067 s'est produite.
Le processus s'est arrêté inopinément.</b></i>
So, what is this "system error 1067" ?

I successfully launched my other MySQL server (which came with Wamp). But even then, ezPublish didn't see it, I got the same error ("The database would not accept ...") !!!

I'm tired :-(
Does someone have an idea ?

Thanks a lot :)
Olivier (excuse my bad english !)

Łukasz Serwatka

Tuesday 08 November 2005 8:50:54 am

Olivier, for installation process try to enable DebugOutput, look in to settings/site.ini.append.php then locate [DebugSettings] and set DebugOutput=enabled

If you will see error like:

"Client does not support authentication protocol"

Then you will have to run SQL query

mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
    -> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;

or start mysqld with the --old-passwords option

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Olivier Ligny

Wednesday 09 November 2005 6:39:06 am

Hello,

The problem was that the databases hadn't been created, because of the MySQL server which crashes at startup, I think. So I use my own MySQL server instead (which came with Wamp). And I added this line in the ezmysqldb.php file :

if ( $this->IsConnected && $db != null ) {
mysql_query("CREATE DATABASE IF NOT EXISTS $db", $connection);
$ret = mysql_select_db( $db, $connection );

Now, it works. (The ezpublish MySQL server still crashes).

Bye
Olivier

eZ debug

Timing: Jan 20 2025 09:01:40
Script start
Timing: Jan 20 2025 09:01:40
Module start 'content'
Timing: Jan 20 2025 09:01:40
Module end 'content'
Timing: Jan 20 2025 09:01:40
Script end

Main resources:

Total runtime0.1527 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 590.4063180.8281
Module start 'content' 0.00670.0052 771.234494.0234
Module end 'content' 0.01190.1407 865.2578525.3047
Script end 0.1526  1,390.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.2350200.0002
Check MTime0.00140.8999200.0001
Mysql Total
Database connection0.00100.683710.0010
Mysqli_queries0.108270.82371410.0008
Looping result0.00130.82721390.0000
Template Total0.140491.910.1404
Template load0.00100.682310.0010
Template processing0.139391.247810.1393
Override
Cache load0.00060.403910.0006
Sytem overhead
Fetch class attribute can translate value0.00191.263910.0019
XML
Image XML parsing0.00030.183510.0003
General
dbfile0.00352.2742200.0002
String conversion0.00000.004530.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs