Problem mit Mysql Import

Es gibt 19 Antworten in diesem Thema. Der letzte Beitrag () ist von Piew-Keks.

    Problem mit Mysql Import

    Ich Schiebe es mal ins Off-Topic

    Ich habe ein Problem mit mysql.

    Was ich gemacht habe ist Joomla aufgespielt und ich wolte mir eine Demo Template anschauen mit Test Configurationen.

    Nun kommt beim Importieren immer ein Fehler. Die SQL Datei kommt immer nur bis "Content" ich habe die Datei mal mit Notepad ++ geöffnet und gesehen das ab einer bestimmten Stelle der Code grau hinterlegt ist.

    Fehlt dort irgendwo ein komma oder sonstiges? Ich finde den Fehler leider nicht.... nur soweit bin ich gekommen . Im anhang habe ich mal die Sql datei.
    Dateien
    Also ich hatte keine Probleme beim Importieren: Der Import wurde erfolgreich abgeschlossen, 76 Abfragen wurden ausgeführt. (sample_yootheme.sql)
    Die Frage ist also was für einen Fehler du angezeigt bekommst? Ansonsten zerleg die Queries in kleinere Teile und führe die aus.
    FehlerStatische Analyse:

    1 Fehler wurden während der Analyse gefunden.

    Unerkanntes Schlüsselwort. (near "ON" at position 25)

    SQL-Befehl:
    Bearbeiten

    SET FOREIGN_KEY_CHECKS = ON;

    MySQL meldet:

    #2006 - MySQL server has gone away

    Warning in .\libraries\dbi\DBIMysqli.class.php#261

    mysqli_query(): MySQL server has gone away

    Backtrace

    .\libraries\dbi\DBIMysqli.class.php#261: mysqli_query( und hier der ganze code ......................
    Es ist grau hinterlegt weil einige Hochkomma's mit Escape, also \' eingefügt werden.
    Kannst das Script ja mal ändern und alle \' löschen und schauen ob es dann geht.
    Das erste Mal tritt das beim Insert Into `#__content` auf

    LG

    //EDit, habe die 2 neuen Posts noch nicht gesehen. Wird wohl nicht daran liegen.
    Das ist meine Signatur und sie wird wunderbar sein!
    Wie gesagt, importiere die Daten in kleineren Häppchen oder passe alle configs an und starte die Dienste neu.
    Ich habe Sie einzeln importiert aber ich komme nur soweit bis ich wieder den fehler bekomme von

    Statische Analyse:

    1 Fehler wurden während der Analyse gefunden.

    Unerkanntes Schlüsselwort. (near "ON" at position 25)

    SQL-Befehl:
    Bearbeiten

    SET FOREIGN_KEY_CHECKS = ON;

    MySQL meldet:

    #2006 - MySQL server has gone away

    Auch wenn ich nur ein Import reinbringe von contend es geht nicht.


    @slice wie hast du es importiert?

    Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von „Piew-Keks“ ()

    Spoiler anzeigen

    Quellcode

    1. #
    2. # The MySQL database server configuration file.
    3. #
    4. # You can copy this to one of:
    5. # - "/etc/mysql/my.cnf" to set global options,
    6. # - "~/.my.cnf" to set user-specific options.
    7. #
    8. # One can use all long options that the program supports.
    9. # Run program with --help to get a list of available options and with
    10. # --print-defaults to see which it would actually understand and use.
    11. #
    12. # For explanations see
    13. # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
    14. # This will be passed to all mysql clients
    15. # It has been reported that passwords should be enclosed with ticks/quotes
    16. # escpecially if they contain "#" chars...
    17. # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
    18. [client]
    19. port = 3306
    20. socket = /var/run/mysqld/mysqld.sock
    21. # Here is entries for some specific programs
    22. # The following values assume you have at least 32M ram
    23. # This was formally known as [safe_mysqld]. Both versions are currently parsed.
    24. [mysqld_safe]
    25. socket = /var/run/mysqld/mysqld.sock
    26. nice = 0
    27. [mysqld]
    28. #
    29. # * Basic Settings
    30. #
    31. user = mysql
    32. pid-file = /var/run/mysqld/mysqld.pid
    33. socket = /var/run/mysqld/mysqld.sock
    34. port = 3306
    35. basedir = /usr
    36. datadir = /var/lib/mysql
    37. tmpdir = /tmp
    38. lc-messages-dir = /usr/share/mysql
    39. skip-external-locking
    40. #
    41. # Instead of skip-networking the default is now to listen only on
    42. # localhost which is more compatible and is not less secure.
    43. #bind-address = 0.0.0.0
    44. #
    45. # * Fine Tuning
    46. #
    47. key_buffer = 16M
    48. max_allowed_packet = 128M
    49. thread_stack = 192K
    50. thread_cache_size = 8
    51. # This replaces the startup script and checks MyISAM tables if needed
    52. # the first time they are touched
    53. myisam-recover = BACKUP
    54. #max_connections = 100
    55. #table_cache = 64
    56. #thread_concurrency = 10
    57. #
    58. # * Query Cache Configuration
    59. #
    60. query_cache_limit = 1M
    61. query_cache_size = 16M
    62. #
    63. # * Logging and Replication
    64. #
    65. # Both location gets rotated by the cronjob.
    66. # Be aware that this log type is a performance killer.
    67. # As of 5.1 you can enable the log at runtime!
    68. #general_log_file = /var/log/mysql/mysql.log
    69. #general_log = 1
    70. #
    71. # Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
    72. #
    73. # Here you can see queries with especially long duration
    74. #log_slow_queries = /var/log/mysql/mysql-slow.log
    75. #long_query_time = 2
    76. #log-queries-not-using-indexes
    77. #
    78. # The following can be used as easy to replay backup logs or for replication.
    79. # note: if you are setting up a replication slave, see README.Debian about
    80. # other settings you may need to change.
    81. #server-id = 1
    82. #log_bin = /var/log/mysql/mysql-bin.log
    83. expire_logs_days = 10
    84. max_binlog_size = 100M
    85. #binlog_do_db = include_database_name
    86. #binlog_ignore_db = include_database_name
    87. #
    88. # * InnoDB
    89. #
    90. # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
    91. # Read the manual for more InnoDB related options. There are many!
    92. #
    93. # * Security Features
    94. #
    95. # Read the manual, too, if you want chroot!
    96. # chroot = /var/lib/mysql/
    97. #
    98. # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
    99. #
    100. # ssl-ca=/etc/mysql/cacert.pem
    101. # ssl-cert=/etc/mysql/server-cert.pem
    102. # ssl-key=/etc/mysql/server-key.pem
    103. [mysqldump]
    104. quick
    105. quote-names
    106. max_allowed_packet = 128M
    107. [mysql]
    108. #no-auto-rehash # faster start of mysql but no tab completition
    109. [isamchk]
    110. key_buffer = 16M
    111. #
    112. # * IMPORTANT: Additional settings that can override those from this file!
    113. # The files must end with '.cnf', otherwise they'll be ignored.
    114. #
    115. !includedir /etc/mysql/conf.d/




    Eigentlich nichts besonderes zu erkennen.

    ging CREATE TABLE `#__content` noch ?
    Danach kommt INSERT INTO `#__content` VALUES

    ​n Notepad++ ist alles ab Content grau unterlegt egal was

    Das hab ich oben schon geschrieben. Das liegt daran das in einem Insert ein \' eingefügt wird. Notepad++ erkennt das \ nicht als escape Charakter. MySQL schon.
    Das ist meine Signatur und sie wird wunderbar sein!
    Beim Insert kommen mehrere Inserts.
    Mach die mal nacheinander. Der erste beginnt mit (1,33,'Module Variations'
    der zweite mit (2,34,'Icons','icons'

    Versuch die Inserts mal nacheinander.
    Mir scheint es liegt iwie am Encoding und/oder am ForeignKey Check

    (Testweise kannst ja mal set foreign_key_checks=0; setzen und schauen ob es dann geht)
    Das ist meine Signatur und sie wird wunderbar sein!
    Habs einzeln versucht und es ging nur geht es jetzt weiter bei `psph3_extensions`

    Irgendwas stimmt da nicht... per hand geht es aber ich kann doch nicht jedesmal alles neu einfügen per hand :/

    Das sind 500 abfragen alleine bei extensions o.o

    /////////////////////////////////////////

    Es lag echt an : max_allowed_packet = 128M ich habe es mal noch höher gesezt und nun ging es.......

    Und nun fühle ich mich sehr verarscht .... die sample daten gehen nicht in joomla ._. // aber das liebe kinder seht ihr in der nächsten folge :D

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Piew-Keks“ ()