×
×

Ubuntu 10.04 (Lucid) x64 MySQL image notes

Back

Ubuntu 10.04 (Lucid) x64 MySQL image notes

For more details on operating system please read the Ubuntu 10.04 (Lucid) x64 image notes.

Linux with MySQL Server installed

MySQL is a relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases.

The service version (shown in native reported format ) is:

# mysql --version
mysql  Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (x86_64) using readline 6.1

MySQL is configured to start at the VM boot time.

Before you can access the database from other computers in your network, you have to change its bind address. Note that this can be a security problem, because your database can be accessed by others computers than your own. Skip this step if the applications which require mysql are running on the same machine.

type:

vim /etc/mysql/my.cnf

and change the line:

bind-address           = localhost

to your own internal ip address e.g. 192.168.1.20

bind-address           = 192.168.1.20

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h ubuntu.domain.com password 'new-password'

Alternatively you can run:

/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers. See the manual for more instructions.

You can start the MySQL daemon with:

cd /usr ; /usr/bin/mysqld_safe

or using rc.d script:

/etc/init.d/mysql start

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com