Changes

Jump to navigation Jump to search
Line 92: Line 92:  
====mysql====
 
====mysql====
 
   
 
   
Q) Is slaving SME's MySQL server for replication possible? Is binary logging possible? If so, do you edit the my.cnf file or some file to initiate binary logging?
+
Q) La réplication du MySQL d'un serveur SME vers un esclave MySQL est elle possible ? Le log binaire est il possible? Si oui, modifiez vous le fichier my.cnf ou autre pour initialiser le log binaire?
   −
A) First step is to go to the mysql web site and research what you want to do, see http://dev.mysql.com/doc/
+
R) La première étape consiste à aller sur le site de MySQL et chercher ce que vous voulez faire, voyez http://dev.mysql.com/doc/
   −
When you find out what needs to be added to the /etc/my.cnf file, you can then make appropriate changes via a sme server custom template.
+
Quand vous avez trouvé ce qui a besoin d'être ajouté au fichier /etc/my.cnf , vous pouvez faire les modifications appropriées au travers d'un fragment de gabarit SME personnalisé (templates-custom).
   −
Examine the template fragments in /etc/e-smith/templates/etc/my.cnf
+
Inspectez les fragments de gabarit dans /etc/e-smith/templates/etc/my.cnf
   −
Determine which fragment your revised code needs to go into. See the 000readme fragment for info.
+
Définissez quel fragment doit accueillir votre code révisé. Voyez le fragment 000readme pour information.
   −
If no fragment is suitable you will need to create a new fragment. In the following example replace 005mysql with the appropriate existing or new fragment name.
+
Si aucun fragment n'est souhaitable, vous aurez à en créer un nouveau. Dans l'exemple suivant remplacez 005mysql par le nom de fragment, existant ou à créer, approprié.
   −
Let's say you wish to modify the /etc/e-smith/templates/etc/my.cnf/005mysqld
+
Disons que vous voulez modifier le fragment /etc/e-smith/templates/etc/my.cnf/005mysqld
   −
Create a new directory and copy the existing template to the custom template tree (or create a new custom template)
+
Créez un nouveau dossier et copier le fragment de gabarit dans le nouveau répertoire personnalisé (ou créez un nouveau fragment de gabarit personnalisé)
 
  mkdir -p /etc/e-smith/templates-custom/etc/my.cnf/
 
  mkdir -p /etc/e-smith/templates-custom/etc/my.cnf/
 
  cp /etc/e-smith/templates/etc/my.cnf/005mysqld /etc/e-smith/templates-custom/etc/my.cnf/005mysqld
 
  cp /etc/e-smith/templates/etc/my.cnf/005mysqld /etc/e-smith/templates-custom/etc/my.cnf/005mysqld
Edit and make your required additions & changes. This is where you add the changes determined from the mysql documentation.
+
Editez afin de faire les additions et changements nécessaires. C'est là que vous faites les modifications en accord avec ce que vous avez déterminé en lisant la documentation de MySQL.
 
  pico -w /etc/e-smith/templates-custom/etc/my.cnf/005mysqld
 
  pico -w /etc/e-smith/templates-custom/etc/my.cnf/005mysqld
Save and exit
+
Sauvegardez et quittez
 
  Ctrl o
 
  Ctrl o
 
  Ctrl x
 
  Ctrl x
Expand template and restart mysqld
+
Appliquez le gabarit et redémarrez mysqld
 
  expand-template /etc/my.cnf
 
  expand-template /etc/my.cnf
 
  sv t /service/mysqld
 
  sv t /service/mysqld
Check status of the service
+
Vérifier l'état du service
 
  sv s /service/mysqld
 
  sv s /service/mysqld
   −
In this particular example there appears to be a requirement to share the mysql databases with LAN (local) or WAN (external) users. To achieve this you may need to change access permissions to your mysql databases, refer
+
Dans cet exemple particulier, il apparait que vous devez autoriser l'accès à votre base MySQL avec le LAN (en local) ou le WAN (vers l'extérieur). Afin de faire ceci vous devrez probablement chnager les permissions d'accès à votre base mysql, référez-vous à
 
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Access_MySQL_from_the_local_network
 
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Access_MySQL_from_the_local_network
 
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Access_MySQL_from_a_remote_network
 
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Access_MySQL_from_a_remote_network
Line 126: Line 126:       −
Check your changes are working
+
Vérifiez que vos modifications sont fonctionnelles
   −
Removal
+
Suppression
To remove these custom changes you delete the custom template, expand the template and then restart the service, as follows
+
Pour supprimer ces changements personalisés, vous avez à supprimer le fragment de gabarit personnalisé, appliquer le gabarit et redémarrer le service, comme suit: T
 
  rm /etc/e-smith/templates-custom/etc/my.cnf/005mysqld
 
  rm /etc/e-smith/templates-custom/etc/my.cnf/005mysqld
 
  expand-template /etc/my.cnf
 
  expand-template /etc/my.cnf
 
  sv t /service/mysqld
 
  sv t /service/mysqld
Check status of the service
+
Vérifier l'état du service
 
  sv s /service/mysqld
 
  sv s /service/mysqld
  
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu