(→Survival kit) |
(→Import a database) |
||
Line 19: | Line 19: | ||
<pre> | <pre> | ||
− | mysql -u laussy -p | + | mysql -u laussy -p wikilaussy < wikilaussy-24-jan-10.sql |
</pre> | </pre> | ||
+ | |||
+ | to import the database data (''wikilaussy-24-jan-10.sql'', a readable file with ''very long lines'') into the database structure (named ''wikilaussy'') above. |
MySQL is the best database we know. That's what we use.
SHOW databases;
is may be the most important command. It shows you what's in store.
CREATE USER 'laussy' IDENTIFIED BY 'mypass'; GRANT ALL PRIVILEGES ON *.* TO 'laussy';
From the command line:
mysql -u laussy -p wikilaussy < wikilaussy-24-jan-10.sql
to import the database data (wikilaussy-24-jan-10.sql, a readable file with very long lines) into the database structure (named wikilaussy) above.