Nous sommes le Mar 22 Juil, 2025 20:49
Supprimer les cookies

Page 1 sur 21, 2 SuivantProblème avec myphpmoney

Sur le logiciel libre en général ou un logiciel libre en particulier

Lun 07 Août, 2006 20:08

Bonjour,

Je cherche un peu d'aide pour "mettre en route" myphpmoney...
J'ai installer phpmyadmin ainsi mysql mais quand je tape l'adresse : http://127.0.0.1/myphpmoney/
J'ai ce message d'erreur :

Warning: mysql_connect(): Access denied for user 'myphpmoney'@'localhost' (using password: NO) in /var/lib/myphpmoney/public_html/class/extends.class on line 92

Warning: mysql_query(): Access denied for user 'www-data'@'localhost' (using password: NO) in /var/lib/myphpmoney/public_html/class/extends.class on line 93

Warning: mysql_query(): A link to the server could not be established in /var/lib/myphpmoney/public_html/class/extends.class on line 93

Warning: mysql_list_tables(): Access denied for user 'www-data'@'localhost' (using password: NO) in /var/lib/myphpmoney/public_html/class/extends.class on line 121

Warning: mysql_list_tables(): A link to the server could not be established in /var/lib/myphpmoney/public_html/class/extends.class on line 121

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/lib/myphpmoney/public_html/class/extends.class on line 122

Warning: mysql_pconnect(): Access denied for user 'myphpmoney'@'localhost' (using password: NO) in /var/lib/myphpmoney/phplib/db_mysql.inc on line 77
Database :

connect(localhost, myphpmoney, $Password) failed.

Installation Documentation : Click here

Please contact the webmaster and report the exact error message.
Session halted.


Pourriez-vous m'indiquer comment régler ce problème ?
Merci beaucoup :D

Oxyde
Oxyde

Messages : 6

Lun 07 Août, 2006 20:42

ça ressemble à un problème de droit d'accès à la base mysql. (par ailleurs www-data, c'est le nom d'utilisateur du serveur apache, du moins si tu es sur une distribution debian ou debian-like comme ubuntu - j'ai bon ou tu tournes sous windows ?)

Il te faut un utilisateur myphpmoney, et qu'il ait un mot de passe, ce mot de passe devant être renseigné quelque part dans les fichiers de configuration de myphpmoney (je suis allée jeter un coup d'oeil à leur doc, c'est pas limpide comme le cristal...)
1) As-tu fait quoi que ce soit sur la base mysql ? (à l'aide ou non de phpmyadmin)
2) As-tu modifié quoi que ce soit au fichier config/settings.inc.php ? Si oui quoi ? (Si non, il faudrait songer à modifier des trucs ligne 25-26-2, je crois)
korova08

Messages : 1114
Géo : Ardennes (08)

Lun 07 Août, 2006 20:58

Oui je suis sous Ubuntu...
Mais la, j'ai encore plus de problème que tout à l'heure...
Quand je tape l'adresse : http://localhost/phpmyadmin/ Le navigateur me demande avec quoi je veux l'ouvrir alors que tout à l'heure je tombais bien sur l'interface de phpmyadmin...
J'y comprend vraiment rien à tout ces trucs, par quoi je dois commencé ?

Dans la base Mysql j'avais mis un nouvel utilisateur avec un mot de passe et le root à bien un mot de passe aussi
Dans les fichiers dont tu parles, j'avais touché à rien !

Merci pour ton aide

Oxyde
Oxyde

Messages : 6

Lun 07 Août, 2006 22:25

1) Pour le porlbème phpmyadmin : Que s'est-il passé entre le moment où il voulait bien ouvrir et le moment où il n'a plus voulu ouvrir ?

2) pour le pfoblème myphpmoney : Ouvrir le fichier config/settings.inc.php de myphpmoney avec un éditeur de texte quelconque (éventuellement avec sudo, tout dépend du propriétaire du fichier) chercher les lignes qui contiennent les paramètres de connexion à la base mysql (dans les lignes 25 et des brouettes si on en croit la documentation de myphpmoney) et remplacer les valeurs par défaut par ton utilisateur mysql et le mot de passe de cet utilisateur mysql
korova08

Messages : 1114
Géo : Ardennes (08)

Mar 08 Août, 2006 16:29

1) Je n'ai rien fait de spécial si ce n'est arrêter et redémarrer mon pc !
J'ai également réinstallé myphpmoney

2) Je verrais ça quand j'aurai réglé ce problème d'apache !

Oxyde
Oxyde

Messages : 6

Mar 08 Août, 2006 19:00

C'est quoi ta version d'apache ? (1.3 ou 2)
On dirait un problème de reconnaissance de php. Une mauvaise configuration du serveur ? (c'est pour ça que je demande la version, les fichiers de conf ne sont pas exactement les mêmes)
korova08

Messages : 1114
Géo : Ardennes (08)

Mar 08 Août, 2006 22:24

Bon, après quelque heure passé en chat... mon phpmyadmin fonctionne de nouveau...
Je n'arrive pas cependant à faire fonctionner myphpmoney, j'ai tout un tas d'erreur !

Invalid SQL: CREATE TABLE IF NOT EXISTS MPM_op
(
OPID BIGINT(20) NOT NULL,
NUMID BLOB NOT NULL,
TEMPID INTEGER(1) NOT NULL,
VALID_OP INTEGER(1) NOT NULL,
USERID BIGINT(20) NOT NULL,
DATES DATE NOT NULL,
CAT BIGINT(20) NOT NULL,
THIRD BIGINT(20) NOT NULL,
COREL BIGINT(20) NOT NULL,
COMMENTS BLOB NOT NULL,
OUT BLOB NOT NULL,
IMP BLOB NOT NULL,
ACCOUNT BLOB NOT NULL,
BALANCE BLOB NOT NULL,
PERIOD INTEGER(1) NOT NULL
)
type = MyISAM

MySQL Error :

1064(You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OUT BLOB NOT NULL,
' at line 13)


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_op ON MPM_op(OPID)

MySQL Error :

1146(Table 'MPM.MPM_op' doesn't exist)


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. You have touch at your table !!!

Delete manuel your table You have touch at your table !!!

Delete manuel your table Database :

Invalid SQL: CREATE TABLE IF NOT EXISTS MPM_op
(
OPID BIGINT(20) NOT NULL,
NUMID BLOB NOT NULL,
TEMPID INTEGER(1) NOT NULL,
VALID_OP INTEGER(1) NOT NULL,
USERID BIGINT(20) NOT NULL,
DATES DATE NOT NULL,
CAT BIGINT(20) NOT NULL,
THIRD BIGINT(20) NOT NULL,
COREL BIGINT(20) NOT NULL,
COMMENTS BLOB NOT NULL,
OUT BLOB NOT NULL,
IMP BLOB NOT NULL,
ACCOUNT BLOB NOT NULL,
BALANCE BLOB NOT NULL,
PERIOD INTEGER(1) NOT NULL
)
type = MyISAM

MySQL Error :

1064(You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OUT BLOB NOT NULL,
' at line 13)


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_op ON MPM_op(OPID)

MySQL Error :

1146(Table 'MPM.MPM_op' doesn't exist)


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. You have touch at your table !!!

Delete manuel your table Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_acct ON MPM_acct(ACCOUNTID)

MySQL Error :

1061(Duplicate key name 'PK_MPM_acct')


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. You have touch at your table !!!

Delete manuel your table Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_user ON MPM_user(USERID)

MySQL Error :

1061(Duplicate key name 'PK_MPM_user')


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_third ON MPM_third(THIRDID)

MySQL Error :

1061(Duplicate key name 'PK_MPM_third')


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. You have touch at your table !!!

Delete manuel your table You have touch at your table !!!

Delete manuel your table You have touch at your table !!!

Delete manuel your table Database :

Invalid SQL: CREATE TABLE IF NOT EXISTS MPM_op
(
OPID BIGINT(20) NOT NULL,
NUMID BLOB NOT NULL,
TEMPID INTEGER(1) NOT NULL,
VALID_OP INTEGER(1) NOT NULL,
USERID BIGINT(20) NOT NULL,
DATES DATE NOT NULL,
CAT BIGINT(20) NOT NULL,
THIRD BIGINT(20) NOT NULL,
COREL BIGINT(20) NOT NULL,
COMMENTS BLOB NOT NULL,
OUT BLOB NOT NULL,
IMP BLOB NOT NULL,
ACCOUNT BLOB NOT NULL,
BALANCE BLOB NOT NULL,
PERIOD INTEGER(1) NOT NULL
)
type = MyISAM

MySQL Error :

1064(You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OUT BLOB NOT NULL,
' at line 13)


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_op ON MPM_op(OPID)

MySQL Error :

1146(Table 'MPM.MPM_op' doesn't exist)


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. You have touch at your table !!!

Delete manuel your table Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_acct ON MPM_acct(ACCOUNTID)

MySQL Error :

1061(Duplicate key name 'PK_MPM_acct')


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. You have touch at your table !!!

Delete manuel your table Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_user ON MPM_user(USERID)

MySQL Error :

1061(Duplicate key name 'PK_MPM_user')


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_third ON MPM_third(THIRDID)

MySQL Error :

1061(Duplicate key name 'PK_MPM_third')


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. You have touch at your table !!!

Delete manuel your table You have touch at your table !!!

Delete manuel your table You have touch at your table !!!

Delete manuel your table Database :

Invalid SQL: CREATE TABLE IF NOT EXISTS MPM_op
(
OPID BIGINT(20) NOT NULL,
NUMID BLOB NOT NULL,
TEMPID INTEGER(1) NOT NULL,
VALID_OP INTEGER(1) NOT NULL,
USERID BIGINT(20) NOT NULL,
DATES DATE NOT NULL,
CAT BIGINT(20) NOT NULL,
THIRD BIGINT(20) NOT NULL,
COREL BIGINT(20) NOT NULL,
COMMENTS BLOB NOT NULL,
OUT BLOB NOT NULL,
IMP BLOB NOT NULL,
ACCOUNT BLOB NOT NULL,
BALANCE BLOB NOT NULL,
PERIOD INTEGER(1) NOT NULL
)
type = MyISAM

MySQL Error :

1064(You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OUT BLOB NOT NULL,
' at line 13)


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_op ON MPM_op(OPID)

MySQL Error :

1146(Table 'MPM.MPM_op' doesn't exist)


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. You have touch at your table !!!

Delete manuel your table Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_acct ON MPM_acct(ACCOUNTID)

MySQL Error :

1061(Duplicate key name 'PK_MPM_acct')


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. You have touch at your table !!!

Delete manuel your table Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_user ON MPM_user(USERID)

MySQL Error :

1061(Duplicate key name 'PK_MPM_user')


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_third ON MPM_third(THIRDID)

MySQL Error :

1061(Duplicate key name 'PK_MPM_third')


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. You have touch at your table !!!

Delete manuel your table You have touch at your table !!!

Delete manuel your table You have touch at your table !!!

Delete manuel your table Database :

Invalid SQL: CREATE TABLE IF NOT EXISTS MPM_op
(
OPID BIGINT(20) NOT NULL,
NUMID BLOB NOT NULL,
TEMPID INTEGER(1) NOT NULL,
VALID_OP INTEGER(1) NOT NULL,
USERID BIGINT(20) NOT NULL,
DATES DATE NOT NULL,
CAT BIGINT(20) NOT NULL,
THIRD BIGINT(20) NOT NULL,
COREL BIGINT(20) NOT NULL,
COMMENTS BLOB NOT NULL,
OUT BLOB NOT NULL,
IMP BLOB NOT NULL,
ACCOUNT BLOB NOT NULL,
BALANCE BLOB NOT NULL,
PERIOD INTEGER(1) NOT NULL
)
type = MyISAM

MySQL Error :

1064(You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OUT BLOB NOT NULL,
' at line 13)


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_op ON MPM_op(OPID)

MySQL Error :

1146(Table 'MPM.MPM_op' doesn't exist)


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. You have touch at your table !!!

Delete manuel your table Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_acct ON MPM_acct(ACCOUNTID)

MySQL Error :

1061(Duplicate key name 'PK_MPM_acct')


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. You have touch at your table !!!

Delete manuel your table Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_user ON MPM_user(USERID)

MySQL Error :

1061(Duplicate key name 'PK_MPM_user')


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. Database :

Invalid SQL: CREATE UNIQUE INDEX PK_MPM_third ON MPM_third(THIRDID)

MySQL Error :

1061(Duplicate key name 'PK_MPM_third')


Installation Documentation :Click here

Please contact the webmaster and report the exact error message. You have touch at your table !!!

Delete manuel your table You have touch at your table !!!


Et en dessous, j'ai la "page d'accueil" de myphpmoney
Est-ce que quelqu'un sait comment régler ce (gros) soucis ???
Merci beaucoup
Oxyde

Messages : 6

Mer 09 Août, 2006 07:34

IL n'arrive pas à créer les table aparemment... Il dit que la syntaxe utilisée pour la création des tables est invalide...

Ça ressemble à un problème à reporter aux développeurs de myphpmoney, pusique ce sont eux qui ont écrit ce code. La seule chose que ça m'inspirerait est que 'OUT' doit être un mot réservé mysql, et pour l'utiliser comme nom de champ il faudrait le protéger par des ``.
M'enfin, je peux aussi me tromper, et à mon avis là c'est un bug du logiciel, donc à reporter à qui de droit...
korova08

Messages : 1114
Géo : Ardennes (08)

Mer 09 Août, 2006 12:26

J'ai signalé le bug aux développeurs, j'attends leurs réponses...

La seule chose que ça m'inspirerait est que 'OUT' doit être un mot réservé mysql, et pour l'utiliser comme nom de champ il faudrait le protéger par des ``


Comment je peux faire ça ??
Merci
Oxyde
Oxyde

Messages : 6

Mer 09 Août, 2006 16:09

Trouver les scripts qui créent les tables et mettre les `` a la mano pour obtenir `OUT`... Voilà pourquoi à mon avis, il faut faire appel aux developpeurs. Eux sauront quels fichiers sont à modifier... En plus, c'est peut-être même pas ça le problème...
korova08

Messages : 1114
Géo : Ardennes (08)

Qui est en ligne ?

Utilisateur(s) parcourant actuellement ce forum : Aucun utilisateur inscrit