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

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 01:16:44
Script start
Timing: Jan 19 2025 01:16:44
Module start 'layout'
Timing: Jan 19 2025 01:16:44
Module start 'content'
Timing: Jan 19 2025 01:16:44
Module end 'content'
Timing: Jan 19 2025 01:16:44
Script end

Main resources:

Total runtime0.0243 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 590.2969152.6250
Module start 'layout' 0.00770.0064 742.921939.4453
Module start 'content' 0.01400.0081 782.367289.4766
Module end 'content' 0.02210.0021 871.843834.3047
Script end 0.0242  906.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003213.3514140.0002
Check MTime0.00145.5805140.0001
Mysql Total
Database connection0.00145.727910.0014
Mysqli_queries0.005623.068130.0019
Looping result0.00000.160310.0000
Template Total0.00176.810.0017
Template load0.00093.632810.0009
Template processing0.00083.179610.0008
Override
Cache load0.00062.565110.0006
General
dbfile0.00031.136580.0000
String conversion0.00000.041340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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