2009-06-13 23:15:46 +02:00
|
|
|
README for mysql 5.1.xx
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
REQUIREMENTS
|
|
|
|
|
|
|
|
PRE-INSTALL
|
2009-06-13 23:15:46 +02:00
|
|
|
Run the included pre-install script to create a new
|
|
|
|
user/group mysql.
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
POST-INSTALL
|
2009-06-13 23:15:46 +02:00
|
|
|
1. Fix user/group of your mysql databases and the log file
|
|
|
|
if you are upgrading mysql from 5.0.x:
|
|
|
|
chown -R mysql:mysql /var/lib/mysql
|
|
|
|
chown mysql:mysql /var/log/mysqld.log
|
|
|
|
2. run 'mysql_install_db' to build the system database
|
2006-02-23 15:26:10 +00:00
|
|
|
in /var/lib/mysql
|
2009-06-13 23:15:46 +02:00
|
|
|
3. run 'mysql_upgrade' to add new privileges and features
|
2006-03-11 17:45:24 +00:00
|
|
|
to the MySQL privilege tables if you have 4.x or 3.x
|
|
|
|
databases
|
2009-06-13 23:15:46 +02:00
|
|
|
4. Set a password for the mysql root user:
|
2006-02-23 15:26:10 +00:00
|
|
|
mysqladmin -u root password <mysql_root_password>
|
|
|
|
|
|
|
|
PRECAUTION
|
|
|
|
1. With the default configuration networking support for
|
|
|
|
mysql is disabled, meaning the mysql daemon is accessable
|
|
|
|
from localhost only.
|
|
|
|
To add networking support comment out the 'skip-networking'
|
|
|
|
line in /etc/my.cnf.
|
|
|
|
2. If you upgrade from mysql 4.0.x you must recompile the
|
|
|
|
other packages on your system that are linked against the
|
|
|
|
mysql client libraries (libmysqlclient).
|
|
|
|
To obtain such a list of packages for your system, you
|
|
|
|
may use the command 'prt-get dependent mysql' or use yapo
|
|
|
|
to list the packages.
|
2006-02-24 08:17:08 +00:00
|
|
|
|
|
|
|
INNODB
|
|
|
|
InnoDB table type support is compiled in but disabled by
|
|
|
|
default. Comment out the skip-innodb line in /etc/my.cnf
|
|
|
|
to fully enable InnoDB support.
|