All these operations are performed in Linux and the root permission is required.
Installation start:
Shell> groupadd mysql
Shell> useradd-g mysql
Shell> gunzip | mysql-VERSION.tar.gz | tar-xvf-
Shell> cd mysql-VERSION
Shell>./configure -- prefix =/usr/local/mysql -- with-charset = gb2312
Shell> make
Shell> make install
Shells> 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 var
Shell> chgrp-R mysql.
Shell> bin/mysqld_safe -- user = mysql &
(It is important to start with a mysql user .)
Shell> bin/mysql-uroot-p
(Enter the password. The default password is blank. Press enter)
Shell> Can't connect to local MySQL server through socket '/tmp/mysql. sock' (2)
If the above prompt is displayed, it indicates that the mysql service is not started properly. Because the mysql service is started, the mysql. sock file is automatically generated.
Shell> killall mysql
Kill all mysql processes and restart them.
Shell> bin/mysql_install_db -- user = mysql
Restart
Shell> bin/mysql-uroot-p