IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

PHP & Base de données Discussion :

Création d'une base


Sujet :

PHP & Base de données

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    206
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France

    Informations forums :
    Inscription : Mai 2006
    Messages : 206
    Par défaut Création d'une base
    Bonjour,

    J'ai télécharger EasyPHP pour utiliser une base de données MySQL.

    Pour me connecter je vais dans Démarrez->Programmes->Accessoires->Invite de commande
    Puis je tape
    cd "....../easyPHP1.8/bin"
    puis
    mysql.exe "localhost", "root", ""
    Le PC me met plein de ligne de commandes.

    Ensuite je ve créer une data base mais je n'arrive pas.

    Comment faut-il faire ?

    Merci.

  2. #2
    Membre éprouvé Avatar de bygui
    Homme Profil pro
    PLM/ALM
    Inscrit en
    Avril 2006
    Messages
    133
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : PLM/ALM
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2006
    Messages : 133
    Par défaut
    Voila sans doute ce qu'il te faut
    Cours et tutoriels de formation pour apprendre PHP : http://php.developpez.com/cours/

  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    206
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France

    Informations forums :
    Inscription : Mai 2006
    Messages : 206
    Par défaut
    Mais moi je doit le faire en ligne de commande avec EasyPHP

    j'ai esayer mysql.exe -s"localhost" -u "root" -p

    mais ca ne marche pas.

    Merci.

  4. #4
    Membre éprouvé Avatar de bygui
    Homme Profil pro
    PLM/ALM
    Inscrit en
    Avril 2006
    Messages
    133
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : PLM/ALM
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2006
    Messages : 133
    Par défaut
    aie je vois... bon est-ce que t'es connecté à Mysql, sur ton invite sa doit etre ecrit:
    Mysql>

  5. #5
    Membre confirmé
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    206
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France

    Informations forums :
    Inscription : Mai 2006
    Messages : 206
    Par défaut
    Merci pour ta réponse.

    J'ai réussi avec myphpadmin.


    Si tu sait comment le faire en ligne de commande, peut-tu me dire comment ?

    Merci

  6. #6
    Membre confirmé
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    206
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France

    Informations forums :
    Inscription : Mai 2006
    Messages : 206
    Par défaut
    Quand je fait mysql.exe "localhost", "root", ""
    je n'ai pas : Mysql> mais pourtant c écrit dans la doc du site www.easyphp.org

    Voici mon code :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
     
    C:\>cd "C:\Program Files\EasyPHP1-8\mysql\bin"
     
    C:\Program Files\EasyPHP1-8\mysql\bin>mysql.exe "localhost", "root", ""
    mysql.exe  Ver 14.7 Distrib 4.1.9, for Win95/Win98 (i32)
    Copyright (C) 2002 MySQL AB
    This software comes with ABSOLUTELY NO WARRANTY. This is free software,
    and you are welcome to modify and redistribute it under the GPL license
    Usage: mysql.exe [OPTIONS] [database]
      -?, --help          Display this help and exit.
      -I, --help          Synonym for -?
      --auto-rehash       Enable automatic rehashing. One doesn't need to use
                          'rehash' to get table and field completion, but startup
                          and reconnecting may take a longer time. Disable with
                          --disable-auto-rehash.
      -A, --no-auto-rehash
                          No automatic rehashing. One has to use 'rehash' to get
                          table and field completion. This gives a quicker start of
                          mysql and disables rehashing on reconnect. WARNING:
                          options deprecated; use --disable-auto-rehash instead.
      -B, --batch         Don't use history file. Disable interactive behavior.
                          (Enables --silent)
      --character-sets-dir=name
                          Directory where character sets are.
      --default-character-set=name
                          Set the default character set.
      -C, --compress      Use compression in server/client protocol.
      -#, --debug[=#]     This is a non-debug version. Catch this and exit
      -D, --database=name Database to use.
      --delimiter=name    Delimiter to be used.
      -e, --execute=name  Execute command and quit. (Disables --force and history
                          file)
      -E, --vertical      Print the output of a query (rows) vertically.
      -f, --force         Continue even if we get an sql error.
      -g, --no-named-commands
                          Named commands are disabled. Use \* form only, or use
                          named commands only in the beginning of a line ending
                          with a semicolon (;) Since version 10.9 the client now
                          starts with this option ENABLED by default! Disable with
                          '-G'. Long format commands still work from the first
                          line. WARNING: option deprecated; use
                          --disable-named-commands instead.
      -G, --named-commands
                          Enable named commands. Named commands mean this program's
                          internal commands; see mysql> help . When enabled, the
                          named commands can be used from any line of the query,
                          otherwise only from the first line, before an enter.
                          Disable with --disable-named-commands. This option is
                          disabled by default.
      -i, --ignore-spaces Ignore space after function names.
      --local-infile      Enable/disable LOAD DATA LOCAL INFILE.
      -b, --no-beep       Turn off beep on error.
      -h, --host=name     Connect to host.
      -H, --html          Produce HTML output.
      -X, --xml           Produce XML output
      --line-numbers      Write line numbers for errors.
      -L, --skip-line-numbers
                          Don't write line number for errors. WARNING: -L is
                          deprecated, use long version of this option instead.
      --no-tee            Disable outfile. See interactive help (\h) also. WARNING:
                          option deprecated; use --disable-tee instead
      -n, --unbuffered    Flush buffer after each query.
      --column-names      Write column names in results.
      -N, --skip-column-names
                          Don't write column names in results. WARNING: -N is
                          deprecated, use long version of this options instead.
      -O, --set-variable=name
                          Change the value of a variable. Please note that this
                          option is deprecated; you can set variables directly with
                          --variable-name=value.
      --sigint-ignore     Ignore SIGINT (CTRL-C)
      -o, --one-database  Only update the default database. This is useful for
                          skipping updates to other database in the update log.
      -p, --password[=name]
                          Password to use when connecting to server. If password is
                          not given it's asked from the tty.
      -W, --pipe          Use named pipes to connect to server.
      -P, --port=#        Port number to use for connection.
      --prompt=name       Set the mysql prompt to this value.
      --protocol=name     The protocol of connection (tcp,socket,pipe,memory).
      -q, --quick         Don't cache result, print it row by row. This may slow
                          down the server if the output is suspended. Doesn't use
                          history file.
      -r, --raw           Write fields without conversion. Used with --batch.
      --reconnect         Reconnect if the connection is lost. Disable with
                          --disable-reconnect. This option is enabled by default.
      -s, --silent        Be more silent. Print results with a tab as separator,
                          each row on new line.
      --shared-memory-base-name=name
                          Base name of shared memory.
      -S, --socket=name   Socket file to use for connection.
      -t, --table         Output in table format.
      -T, --debug-info    Print some debug info at exit.
      --tee=name          Append everything into outfile. See interactive help (\h)
                          also. Does not work in batch mode.
      -u, --user=name     User for login if not current user.
      -U, --safe-updates  Only allow UPDATE and DELETE that uses keys.
      -U, --i-am-a-dummy  Synonym for option --safe-updates, -U.
      -v, --verbose       Write more. (-v -v -v gives the table output format).
      -V, --version       Output version information and exit.
      -w, --wait          Wait and retry if connection is down.
      --connect_timeout=# Number of seconds before connection timeout.
      --max_allowed_packet=#
                          Max packet length to send to, or receive from server
      --net_buffer_length=#
                          Buffer for TCP/IP and socket communication
      --select_limit=#    Automatic limit for SELECT when using --safe-updates
      --max_join_size=#   Automatic limit for rows in a join when using
                          --safe-updates
      --secure-auth       Refuse client connecting to server if it uses old
                          (pre-4.1.1) protocol
     
    Default options are read from the following files in the given order:
    C:\WINNT\my.ini C:\WINNT\my.cnf C:\my.ini C:\my.cnf
    The following groups are read: mysql client
    The following options may be given as the first argument:
    --print-defaults        Print the program argument list and exit
    --no-defaults           Don't read default options from any options file
    --defaults-file=#       Only read default options from the given file #
    --defaults-extra-file=# Read this file after the global files are read
     
    Variables (--variable-name=value)
    and boolean options {FALSE|TRUE}  Value (after reading options)
    --------------------------------- -----------------------------
    auto-rehash                       TRUE
    character-sets-dir                (No default value)
    default-character-set             latin1
    compress                          FALSE
    database                          (No default value)
    delimiter                         ;
    vertical                          FALSE
    force                             FALSE
    named-commands                    FALSE
    local-infile                      FALSE
    no-beep                           FALSE
    host                              (No default value)
    html                              FALSE
    xml                               FALSE
    line-numbers                      TRUE
    unbuffered                        FALSE
    column-names                      TRUE
    sigint-ignore                     FALSE
    port                              3306
    prompt                            mysql>
    quick                             FALSE
    raw                               FALSE
    reconnect                         TRUE
    shared-memory-base-name           (No default value)
    socket                            (No default value)
    table                             FALSE
    debug-info                        FALSE
    user                              (No default value)
    safe-updates                      FALSE
    i-am-a-dummy                      FALSE
    connect_timeout                   0
    max_allowed_packet                16777216
    net_buffer_length                 16384
    select_limit                      1000
    max_join_size                     1000000
    secure-auth                       FALSE
     
    C:\Program Files\EasyPHP1-8\mysql\bin>

  7. #7
    Membre éprouvé Avatar de bygui
    Homme Profil pro
    PLM/ALM
    Inscrit en
    Avril 2006
    Messages
    133
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : PLM/ALM
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2006
    Messages : 133
    Par défaut
    je ne sais pas pourquoi ta ça (sa fé longtemps que j'y ai pas touché) mais tu as l'air connecter... tu as essayé de creer ta base avec quelle requete?

Discussions similaires

  1. Création d'une base PARADOX dynamiquement ? tutorial ?
    Par BXDSPORT dans le forum Bases de données
    Réponses: 1
    Dernier message: 16/07/2004, 10h08
  2. Création d'une base de données contenant des images
    Par gandalf_le_blanc dans le forum Décisions SGBD
    Réponses: 3
    Dernier message: 16/06/2004, 15h29
  3. message d'erreur lors de la création d'une base
    Par franculo_caoulene dans le forum MS SQL Server
    Réponses: 4
    Dernier message: 16/04/2004, 15h47
  4. [amc designer] création d'une base postgresql
    Par david42 dans le forum PostgreSQL
    Réponses: 9
    Dernier message: 12/03/2004, 11h08
  5. Création d'une base avec IbConsole
    Par Lucien dans le forum Outils
    Réponses: 3
    Dernier message: 02/03/2004, 18h34

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo