DB connection problem

Please report bugs here!

Moderator: Thorsten

Post Reply
lilik
Posts: 7
Joined: Mon Sep 17, 2007 10:12 am

DB connection problem

Post by lilik »

hi

Method
connect($DB["server"], $DB["user"], $DB["password"], $DB["db"]);

don't get data from $DB["parametr"]

sa script don't work couse can't conenct to DB

how to fix it ?
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

what do you need as parameter?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
lilik
Posts: 7
Joined: Mon Sep 17, 2007 10:12 am

Post by lilik »

script have no connection with mysql becouse don't get mysql data needed to conenction form inc/data.php
connect($DB["server"], $DB["user"], $DB["password"], $DB["db"]); end in script this are empty :/ sa i cant log in or add somthing :( ver 2.0.3
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

did you run the install script? Then all entries are filled.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
lilik
Posts: 7
Joined: Mon Sep 17, 2007 10:12 am

Post by lilik »

yes, i was unable to install until dont write by hands DB data in mysql.php
after that script was installed but now i can't login or add some data
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

that was totally wrong. Please use the documentation to install phpMyFAQ correct.

http://www.phpmyfaq.de/dokumentation.2.0.en.php#2

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
lilik
Posts: 7
Joined: Mon Sep 17, 2007 10:12 am

Post by lilik »

no no when i writ by hand DB data into mysql.php installation was sucessfull before that i have error with connection to DB
but now i can't login i think script can't connet to DB
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

HI,

please use the install script otherwise it won't work.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
lilik
Posts: 7
Joined: Mon Sep 17, 2007 10:12 am

Post by lilik »

if i use install script i have error "can't connect to mysql" during installation!
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which other error message did you get?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
lilik
Posts: 7
Joined: Mon Sep 17, 2007 10:12 am

Post by lilik »

only about connection to mysql "can not estabilished connection to data base" no other meeages
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

then there's no connection available. Do you get a normal connect to MySQL?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
lilik
Posts: 7
Joined: Mon Sep 17, 2007 10:12 am

Post by lilik »

yes mysql is working fine with other scripts
Post Reply