Visualizzazione dei risultati da 1 a 8 su 8

Discussione: Errore installazione

  1. #1

    Errore installazione

    Nell'installare uno script mi viene dato questo errore?

    Installation




    Warning: mysql_select_db(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /web/htdocs/www.fmc2000.net/home/install.php on line 21

    Warning: mysql_select_db(): A link to the server could not be established in /web/htdocs/www.fmc2000.net/home/install.php on line 21

    Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /web/htdocs/www.fmc2000.net/home/install.php on line 22

    Warning: mysql_query(): A link to the server could not be established in /web/htdocs/www.fmc2000.net/home/install.php on line 22
    Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

    da csa può dipendere?

    grazie

  2. #2

  3. #3
    Utente di HTML.it L'avatar di flessciato
    Registrato dal
    Jun 2002
    Messaggi
    1,522
    semplice... hai cannato la query... posta il codice !
    Slack 10 - Apple G5 2.5 - winzoz xp
    php/mysql/apache
    Flash MX / roba in 3D / roba per il video e l'audio

  4. #4
    ehm di quale pagina?

    se serve lo ricevo da qui

    http://www.fmc2000.net/install.php

  5. #5
    il config è settato come sempre su



    <?

    $host="62.149.150.18"; // MySQL Host

    $dbuser="Sql25737"; // MySQL User

    $dbname="Sql25737_1"; // MySQL database Name

    $dbpass="********"; // MySQL Password

    ?>

  6. #6
    Utente di HTML.it L'avatar di flessciato
    Registrato dal
    Jun 2002
    Messaggi
    1,522
    Originariamente inviato da mobis73
    ehm di quale pagina?

    se serve lo ricevo da qui

    http://www.fmc2000.net/install.php
    dell'unica che hai sotto al naso
    Slack 10 - Apple G5 2.5 - winzoz xp
    php/mysql/apache
    Flash MX / roba in 3D / roba per il video e l'audio

  7. #7
    se intendi l'install

    codice:
    <? include "config.php"; ?>
    <html><head><title>Install File</title></head>
    <body bgcolor="#FFFFFF">
    <font face="Verdana" size="2" color="Black">
    
    <center>Installation
    
    
    
    
    <?
    if ($step == "") {
    
    echo "Welcome to the Ultimate News Install file, click here";
    
    }
    
    elseif ($step == "3") {
    
    mysql_select_db("$dbname");
    mysql_query("CREATE TABLE `news` (`newsid` TINYINT AUTO_INCREMENT, `title` TEXT NOT NULL, `story` TEXT NOT NULL, `user` TEXT NOT NULL, `date` TEXT NOT NULL , PRIMARY KEY (`newsid`)) comment = 'Created by Alex Humberstone';") or die(mysql_error());
    echo "Ultimate News has now been installed!
    
    Please delete install.php now!!!";
    
    }
    
    ?>

  8. #8
    Utente di HTML.it L'avatar di flessciato
    Registrato dal
    Jun 2002
    Messaggi
    1,522
    prova così

    codice:
    
    <? include "config.php"; ?>
    <html><head><title>Install File</title></head>
    <body bgcolor="#FFFFFF">
    <font face="Verdana" size="2" color="Black">
    
    <center>Installation
    
    
    
    
    <?
    if ($step == "") {
    echo "Welcome to the Ultimate News Install file, click here";
    }
    elseif ($step == "3") {
    //manca la riga di connessione
    $connessione = mysql_connect($host,$dbuser,$dbpass);
    mysql_select_db("$dbname", $connessione);
    mysql_query("CREATE TABLE `news` (`newsid` TINYINT AUTO_INCREMENT, `title` TEXT NOT NULL, `story` TEXT NOT NULL, `user` TEXT NOT NULL, `date` TEXT NOT NULL , PRIMARY KEY (`newsid`)) comment = 'Created by Alex Humberstone';") or die(mysql_error());
    echo "Ultimate News has now been installed!
    
    Please delete install.php now!!!";
    }
    //intanto manca anche questo
    mysql_close();
    ?>
    <?
    $host="62.149.150.18"; // MySQL Host
    $dbuser="Sql25737"; // MySQL User
    $dbname="Sql25737_1"; // MySQL database Name
    $dbpass="********"; // MySQL Password
    ?>
    sperando che il tuo SQL sia giusto
    Slack 10 - Apple G5 2.5 - winzoz xp
    php/mysql/apache
    Flash MX / roba in 3D / roba per il video e l'audio

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.