alphega
samedi 14 janvier 2006 à 11:42

Merci, ça fonctionne ...
J'explique en détail pour ceux qui seraient aussi nuls que moi.
Pour se connecter et désigner la base de données sur laquelle travailler:
mysql -ulogin -pmotdepasse nomdelabase;Si tout de passe bien ceci s'affiche:
CODE
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with; or \g.
Your MySQL connection id is 808310 to server version: 4.0.25-standard-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
Pour optimiser une table:
optimize table nom_table;CODE
+-----------------------+----------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+-----------------------+----------+----------+----------+
| dejapris.ibf_sessions | optimize | status | OK |
+-----------------------+----------+----------+----------+
1 row in set (0.06 sec)
Je vais abuser un peu: Comment selectionner toutes les tables d'une base de données sans avoir à taper le nom de chaque table ?
Merci encore