5其他就是创建链接或者环境变量,实现在终端中,直接执行mysql........
-------------------------------------------------------
(执行内部mysql安装结果)
www.linuxidc.com @www.linuxidc.com:/usr/local/mysql$ sudo scripts/mysql_install_db --user=mysql
Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
(要设置开机自启动,请将文件复制到系统正确的地方)
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
(记得给mysql管理员设置密码)
To do so, start the server, then issue the following commands:(设置密码方式1)
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h cheng-laptop password 'new-password'
Alternatively you can run:(或者你可以运行下面这个命令进行密码设置,我用的这个,里面其实不只是设置root密码)
./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:(运行MySQL daemon,需要cd到当前目录,执行./bin/mysqld_safe &)
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
www.linuxidc.com @www.linuxidc.com-laptop:/usr/local/mysql$
------------------------------------------------------------------------------------------------------
其他:
1关于Ubuntu安装版本,官网
》》》》》MySQL Community Server--Debian Linux ,
MySQL Community Server--generic,最后一个
| Linux - Generic 2.6 (x86, 64-bit), Compressed TAR Archive | 5.5.20 | 177.3M | ||
| (mysql-5.5.20-linux2.6-x86_64.tar.gz) |
