Platform - Linux
Sample script to backup MySQL DBs
#!/bin/bash
# Pls change these
db_host='localhost'
db_user='backupuser'
db_user='secretpassword'
#
# BACKUP_DIR - Need to change as per HOST/DB environment
#
BACKUP_DIR="/backups/`hostname -s`/mysql"
if [ ! -d $BACKUP_DIR ] ; then
mkdir -p $BACKUP_DIR
chmod 700 $BACKUP_DIR
fi
# Pls donot touch below code
DATE=`date +"%Y%m%d"`
MYSQLDUMP="$(which mysqldump)"
LOG_FILE=${BACKUP_DIR}/runlog${DATE}.log
MYSQL="$(which mysql)"
DB_LIST="$($MYSQL -u$db_user -h$db_host -p$db_pass -Bse 'show
databases')"
exec 2> ${LOG_FILE}
MYSQLDUMP_OPT="${MYSQLDUMP} -u${db_user} -p${db_pass}
-h${db_host} --opt"
for DB_NAME in ${DB_LIST} ; do
if [ ! -d …
Hello,
Today we have added the possibility of registering domain names
in .me.uk, which is the UK extension that is designed for
individuals. The extension nonetheless remains open to all. It
may be registered for a minimum of 2 years at a rate of €6 under
A rates.
You may see the .ME.UK information page here: https://www.gandi.net/domain/me.uk/info
The complete .ME.UK price list can be found at: https://www.gandi.net/domaine/prix/detail/nl/
I presented on "Creating powerful web applications using
GlassFish, MySQL and NetBeans/Eclipse" as the first talk of
FISL 10 yesterday. The room was only partial full being the first
talk of FISL but got packed towards the middle so that was
exciting. The slides are available here.
The key message is that NetBeans and Eclipse provide a seamless development/deployment
environment for GlassFish.
The several demos shown in the talk are explained at:
- …
There has been a lot of discussion in the blogosphere recently
about benchmarks, and I can't help but notice that a lot of the
comments and opinions are harsh, sometimes downright mean, and
alas uninformed.
Why do people care so much about a benchmark. IT IS JUST NUMBERS
PEOPLE.
Seriously (and this isn't directed at any one person in
particular):
Who doesn't like to play "my thing is bigger than your thing"
every once in awhile, but you don't have to take it so
personally. If a vendor wants to waste money running a huge
benchmark for little profit - WHO CARES? There must be some
audience for the benchmark results, but if you aren't it, why
bother screaming at the top of your lungs that the benchmark is
ludicrous, or useless or ineffective. Just ignore it. You
obviously are not the intended audience. If you are the
intended audience and you still don't care, then go play another
game. …
On the MySQL Proxy channel we get questions from time to time if the authentication can be intercepted and replaced data from a external source.
From now on, you can. For example if you want to get data from a external source (like LDAP) or want to implement roles.
Mapping Accounts to “Roles”
There isn’t much needed to implement Roles for MySQL with the help of the MySQL Proxy.
-
mysql.userdoesn’t contain users, but roles instead - the proxy maps user-accounts to role-accounts with a script like above
It works like this:
-
login to the proxy
$ mysql --user=jan --password=secret --port=4040 -
proxy looks up username password, finds a role for him
-
proxy replaces credentials ad hoc
-
…
On the MySQL Proxy channel we get questions from time to time if the authentication can be intercepted and replaced data from a external source.
From now on, you can. For example if you want to get data from a external source (like LDAP) or want to implement roles.
Mapping Accounts to "Roles"
There isn't much needed to implement Roles for MySQL with the help of the MySQL Proxy.
-
mysql.userdoesn't contain users, but roles instead - the proxy maps user-accounts to role-accounts with a script like above
It works like this:
-
login to the proxy
$ mysql --user=jan --password=secret --port=4040
-
proxy looks up username password, finds a role for him
- proxy replaces credentials ad hoc
- mysql-server sees the role-name and role-password and lets the user in …
I presented on "Creating powerful web applications using
GlassFish, MySQL and NetBeans/Eclipse" as the first talk of
FISL 10 yesterday. The room was only partial full being the first
talk of FISL but got packed towards the middle so that was
exciting. The slides are available here.
The key message is that NetBeans and Eclipse provide a seamless development/deployment
environment for GlassFish.
The several demos shown in the talk are explained at:
- …
I presented on "Creating powerful web applications using
GlassFish, MySQL and NetBeans/Eclipse" as the first talk of
FISL 10 yesterday. The room was only partial full being the first
talk of FISL but got packed towards the middle so that was
exciting. The slides are available here.
The key message is that NetBeans and Eclipse provide a seamless development/deployment
environment for GlassFish.
The several demos shown in the talk are explained at:
- …
Yes, that's right, I mean *customers*. What do I mean with "MySQL
Customer"? I would say "users who work for companies that prefer
to buy products (tech support, subscriptions to enterprise
binaries, short consulting engagements etc.)" instead of going
for the familiar DIY approach.
Two years ago there was one and only MySQL product. There was the
pluggable storage engine API, there was InnoDB outside the core
development of the product and nothing else. Customers could
confidently refer to a single provider, MySQL AB, to buy services
and support from the creators of MySQL. Was it good for the
customer? I would say yes, because the product was (and still is,
of course) open source and there was a strong ecosystem and a
wide adoption. But there was not much choice around: apart from
relatively few strong but relatively companies, customers were in
some way tied only to one provider.
Last year Sun acquired MySQL AB. I …