Mysql Error 2003

  • Hallo Leute heute habe ich mich dazu entschlossen mysql zu lernen, jedoch habe ich grundlegende Probleme.


    1. Problem ist die folgende Fehlermeldung
    ERROR 2003: Cant't connect to MySQL server on 'localhost' <10061>


    --> Bin nach dem Buch von Markt+Technik : MySQL & PHP vorgegangen. Habe alles so gemacht wie die es im Buch beschrieben haben. Habe Apache installiert sowie php die auch funktionieren!!


    Habe mysql im Verzeichnis d:\Apache\mysql
    --> Apache ist auch gestartet. jedoch erhalte ich bei eingabe von


    d:\Apache\mysql\bin>mysql
    ERROR 2003: Cant't connect to MySQL server on 'localhost' <10061>



    Im MY.CNF sind folgende vorgaben enthalten die ich wie vorgegeben verändert habe



    # Example mysql config file.
    # Copy this file to c:\my.cnf to set global options
    #
    # One can use all long options that the program supports.
    # Run the program with --help to get a list of available options


    # This will be passed to all mysql clients
    [client]
    #password=my_password
    port=3306
    #socket=MySQL


    # Here is entries for some specific programs
    # The following values assume you have at least 32M ram


    # The MySQL server
    [mysqld]
    port=3306
    #socket=MySQL
    skip-locking
    default-character-set=latin1
    set-variable = key_buffer=16M
    set-variable = max_allowed_packet=1M
    set-variable = thread_stack=128K
    set-variable = flush_time=1800


    # Uncomment the following row if you move the MySQL distribution to another
    # location
    basedir = d:\Apache\mysql


    innodb_data_file_path = ibdata1:250M;ibdata2:250M
    innodb_data_home_dir = d:\Apache\mysql\ibdata
    set-variable = innodb_mirrored_log_groups=1
    innodb_log_group_home_dir = d:\Apache\mysql\iblogs
    set-variable = innodb_log_files_in_group=3
    set-variable = innodb_log_file_size=10M
    set-variable = innodb_log_buffer_size=5M
    innodb_flush_log_at_trx_commit=1
    innodb_log_arch_dir = d:\Apache\mysql\iblogs
    innodb_log_archive=0
    set-variable = innodb_buffer_pool_size=80M
    set-variable = innodb_additional_mem_pool_size=10M
    set-variable = innodb_file_io_threads=4
    set-variable = innodb_lock_wait_timeout=50



    [mysqldump]
    quick
    set-variable = max_allowed_packet=16M


    [mysql]
    no-auto-rehash


    [isamchk]
    set-variable= key=16M


    [client_fltk]
    help_file= c:\mysql\sql_client\MySQL.help
    client_file= c:\mysql\MySQL.options
    history_length=20
    database = test
    queries_root= c:\mysql\queries
    last_database_file= c:\mysql\lastdb



    Weiß jemand was ich falsch mache ?

  • mysql musst du mit "mysqld" starten... mysql ist der client, der keine verbindung zum sql-server bekommt... probiers mal aus... am einfachsten ist das komplette packet von xampp... das macht alles automatisch.

  • Wenn mysql richtig installiert ist solltest du auch einen Starmenüeintrag haben - dort kann man mySQL auch als System-Service starten ...

    -> Tristan @ Work <-
    --

  • danke versuche es mal mit xampp


    danach schauen wir mal weiter.

  • versuch mal vielleicht mit dem prompt befehl mysql zu starten:
    ....\bin\mysql -u root
    vielleicht hilft Dir das...
    ansonsten ist xampp top!

    Lebe Deinen Tag als ob es Dein letzter sei, denn was war ist gewesen und was kommt wird gewesen sein.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!