Very handy.
Here is a little addition that might be useful:
Once you have lampp running on your system there will come a time when you want command line access to the mysql databases, for backup or perhaps for something that is too much trouble in phpmyadmin.
You can use synaptic package manager to install the mysql-client meta package.
Once installed, you can point it at your lampp mysql database by creating a .my.cnf file in your home directory and setting up its contents as follows (use your real username/password as appropriate):
Code:
[client]
user=root
password=secret
socket=/opt/lampp/var/mysql/mysql.sock
This allows you to use mysqldump etc. from the command line and have it act on your databases in lampp. For example:
Code:
$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 36
Server version: 5.0.67 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+----------------+
| Tables_in_test |
+----------------+
| names |
| orders |
+----------------+
2 rows in set (0.00 sec)
mysql> select * from names;
+-------+
| name |
+-------+
| **** |
| harry |
| tom |
+-------+
3 rows in set (0.00 sec)
mysql> quit
Bye
mysqldump is great for backups, mysqlimport is handy for large data imports and there are a number of other handy utilities in mysql-client just
and use man to check them out.
Bookmarks