-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2007-12-15 a las 20:02 +0100, Camaleón escribió:
Acabo de exportar desde una base de datos de un servidor remoto que tiene una versión antigua de MySQL (creo que es de la rama 4.x) una consulta completa para generar la tabla.
En el manual, "pinfo mysql" hay varios capítulos interesantes: 2.4.16.2 Upgrading from MySQL 4.1 to 5.0 (Node: upgrading-from-4-1) 2.4.16.3 Copying MySQL Databases to Another Machine (Node: upgrading-to-arch) You can copy the `.frm', `.MYI', and `.MYD' files for `MyISAM' tables between different architectures that support the same floating-point format. (MySQL takes care of any byte-swapping issues.) See *Note myisam-storage-engine::. In cases where you need to transfer databases between different architectures, you can use `mysqldump' to create a file containing SQL statements. You can then transfer the file to the other machine and feed it as input to the `mysql' client. The easiest (although not the fastest) way to move a database between two machines is to run the following commands on the machine on which the database is located: shell> mysqladmin -h 'OTHER_HOSTNAME' create DB_NAME shell> mysqldump --opt DB_NAME | mysql -h 'OTHER_HOSTNAME' DB_NAME a través de la red... You can also store the dump in a file, transfer the file to the target machine, and then load the file into the database there. For example, you can dump a database to a compressed file on the source machine like this: shell_O> mysqldump --quick DB_NAME | gzip > DB_NAME.gz shell_D> mysqladmin create DB_NAME shell_D> gunzip < DB_NAME.gz | mysql DB_NAME o mediante ficheros y no hace falta el phpmyadmin. Claro, que también puede fallar... Y hay otro apartado más para tablas grandes, que creo debe ser mejor: crear la base de datos, luego las tablas, y finalmente los datos. Y luego otra fase para todos los casos para copiar los permisos y otras chuminadas. Y si han hecho un capítulo especial para el paso de la 4 a la 5, será que hay sus poblemas. - -- Saludos Carlos E.R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHZF0jtTMYHG2NR9URAqxaAJ4jjV/ZQSBaJuwXX+geuxQTxtdigQCeO4yu XI7oUZIUYpKvrVSRnHNheNQ= =Xi/o -----END PGP SIGNATURE-----