Bonjour à tous,
je suis face à un problème pour déplacer mes data. J'ai installé (enfin dézippé serait plus juste) mysql sur mon disque C. Et je voudrais que mes données soient sauvegardées sur le disque D.
J'ai vu qu'il fallait modifier dans mon fichier ini la ligne concernant le datadir :
mon fichier my-default.ini
De plus, j'ai récupéré tout ce que contenait mon dossier C:\mysql\mysql-5.6.17-winx64\data\ , et j'ai tout copié dans D:\DataMySQL.
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 # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the # *** default location during install, and will be replaced if you # *** upgrade to a newer version of MySQL. [mysqld] explicit_defaults_for_timestamp=true # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # innodb_buffer_pool_size = 128M # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin # These are commonly set, remove the # and set as required. basedir = "C:\\mysql\\" datadir = "D:\\DataMySQL\\" # port = ..... # server_id = ..... # Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. # join_buffer_size = 128M # sort_buffer_size = 2M # read_rnd_buffer_size = 2M sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
J'ai tenté de relancer mysql et d'insérer une donnée dans ma base. Aucune modifications des fichiers dans D, mais dans C, je vois que les fichiers ib_logfile0 et ibdata1 ont été modifiés.
Si j'ai mal effectué la procédure ou alors que je me suis trompé, dites-le moi s'il vous plait. Merci
Partager