Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][MySQL] Problem z odpaleniem stronki
zielony112
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 28.09.2010

Ostrzeżenie: (0%)
-----


Witam wszystkich forumowiczów. Na początku chciałem zaznaczyć, że jestem na prawdę raczkującym amatorem php. Otóż ściągnąłem jedno z darmowych portfolio. Jednak mam problem z jego uruchomieniem. Stronkę próbuje otworzyć poprzez krasnala. Wrzucam wszystko do katalogu odpalam i wyświetla mi się następujący komunikat:

Cytat
Warning: mysql_connect(): Can't connect to MySQL server on 'internal-db.s69633.gridserver.com' (10061) in c:\usr\krasnal\www\portfolio\config.php on line 15
Can't connect to MySQL server on 'internal-db.s69633.gridserver.com' (10061)


W stronie załączono instrukcję instalacji jednak nie do końca umiem się w niej połapać. Instrukcja wygląda następująco:

Cytat
Install Instructions
1. Open up the file config.php and change the Databse Host, Username, Password and Name information to your own values.

2. Upload the folder ProFolio to your website (You can also upload the files within the folder into your website's root directory).

3. Direct your browser to the folder. For example, if your website is http://website.com, then to access your the folder, go to http://website.com/ProFolio or if you installed the files in the root directory of your website, you would access the page by just going to http://website.com

4. Follow the install instructions presented. When you have pressed the Finish button, you can Login to your ProFolio in the top-right corner of the page. Once logged in, you can edit your general settings by clicking Change Settings & Pages or customize your ProFolio by clicking Customize!


You have successfully installed your ProFolio! To access your ProFolio at any time, just point your browser address to where you installed the files (ex. http://website.com/ProFolio or if you installed the files in the root directory of your web host, it would be http://website.com). In order to add pieces to your portfolio, click on Add To Your Portfolio!



Natomiast plik config.php wygląda następująco:

Kod
<?
ob_start("gzip_handler");
ob_start();

//Change the following four items to their appropriate values (Your MySQL host, Your database username, Your database password, Database Name)
$host = "internal-db.s69633.gridserver.com";
$db_username = "db69633_client";
$db_password = "eclipse2";
$database = "db69633_profolio";

//Optional Table Prefix (Leave blank for default)
$prefix = '';

//MySQL - Do not touch.
mysql_connect($host, $db_username, $db_password) or die(mysql_error());
mysql_select_db($database) or die(mysql_error());
?>


Proszę o pomoc co powinno znaleźć się w wyznaczonych miejscach.

Dziękuje każdemu za pomoc pozdrawiam.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
Daiquiri
post
Post #2





Grupa: Administratorzy
Postów: 1 552
Pomógł: 211
Dołączył: 7.07.2009
Skąd: NJ




Musisz utworzyć nowego użytkownika i bazę, a te dane wpisać w
  1. $db_username = "nazwaUżytkownika";
  2. $db_password = "hasło";
  3. $database = "NazwaBazy";


$host = localhost pewnie (IMG:style_emoticons/default/smile.gif)

Ten post edytował Daiquiri 28.09.2010, 22:50:56
Go to the top of the page
+Quote Post
zielony112
post
Post #3





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 28.09.2010

Ostrzeżenie: (0%)
-----


Dziękuje za pomoc, udało się zrobić. Co prawda wystąpiły jeszcze inne błędy ale metodą prób i błędów dopiąłem swego (IMG:style_emoticons/default/smile.gif)

Jeszcze raz dzięki (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 23:09