- Ubuntu installs MySQL, using mysql-5.5.28-linux2.6-x86_64.tar.gz. First downloaded from the official website:http://nchc.dl.sourceforge.net/project/mysql.mirror/MySQL%205.5.28/mysql-5.5.28-linux2.6-x86_64. tar.gz.
- Next is the installation step, I directly affixed to the official installation steps:
shell> Groupadd mysqlshell> useradd-r-g MySQL mysqlshell> cd/usr/localshell> tar zxvf/path/to/mysql-versio n-os.tar.gzshell> ln-s full-path-to-mysql-version-os mysqlshell> cd mysqlshell> chown-r mysql .shell> chgrp -R MySQL .shell> scripts/mysql_install_db--user=mysqlshell> chown-r root .shell> chown-r MySQL datashell> Bin/mysqld_safe--user=mysql &
- follow the prompts to change the password,mysqladmin-u root-p Password * * * *
- this time if mysql-uroot-p (your password) appears: Command not fond, you need to add the MySQL installation address to path, that is, add a line in/etc/profile:
Path=/usr/local/php/bin:/usr/local/mysql/bin: $PATH
Linux UBUNTU4 MYSQL5 Installation Experience