Install-win-source file Excellent installation command:
The basic commands that you must execute to install a MySQL Source
Distribution are:
shell> groupadd mysql
shell> useradd-G mysql
shell> tar-zxvf mysql-4.1.22.tar.gz
shell> Cd mysql-4.1.22
shell>. /configure -- prefix =/usr/local/MySQL -- localstatedir =/Data
shell> make install
shell> CP support-files/my-medium.cnf /etc/My. CNF
shell> Cd/usr/local/MySQL
shell> bin/mysql_install_db -- user = mysql
shell> chown-r root.
shell> chown-r MySQL/Data
shell> chgrp-r MySQL.
shell> bin/mysqld_safe -- user = MySQL &
shell> bin/mysqladmin-P shutdown
Create and run the msyqld command
# Cp mysql-4.1.22/support-files/MySQL. Server/etc/rc. d/init. d/mysqld
# Chmod + x/etc/rc. d/init. d/mysqld
#/Etc/rc. d/init. d/mysqld start
Add auto start
# Chkconfig-add mysqld
Modify the root password
# Mysqladmin-uroot password 123456
Install the dependent Development Kit
# Yum install gcc
# Yum install glib
# Yum install gcc-C ++
# Yum install esound-devel
# Yum install ncurses-devel
Several commands
Chgrp(Change Group)
Function Description: group to which the file or directory belongs.
Chmod(Change Mode)
Function Description: Change the file or directory permissions.
Chown(Change owner)
Function Description: Change the owner or group of a file or directory.