1)Download MYSQL named mysql-6.0.11-alpha-osx10.5-powerpc.tar.gz
2)Uncompress the gz package into /usr/local and rename the folder name from mysql-6.0.11-alpha-osx10.5-powerpc to mysql.
3)Change directory into /usr/local/mysql and run the command:
scripts/mysql_install_db --user=mysql --datadir=/usr/local/mysql/data
and then you will the following info:
chown: /usr/local/mysql/data/mysql: Operation not permitted
chown: /usr/local/mysql/data/test: Operation not permitted
Installing MySQL system tables...
100330 16:00:43 [Warning] Forcing shutdown of 2 plugins
OK
Filling help tables...
100330 16:00:45 [Warning] Forcing shutdown of 2 plugins
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 !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h localhost password 'new-password'
Alternatively you can run:
./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:
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!
The latest information about MySQL is available at http://www.mysql.com/
Support MySQL by buying support/licenses from http://shop.mysql.com/
4) Start mysql with command "mysqld" in the /usr/local/mysql/bin directory. If you want run the mysqld or others mysql commands in everywhere, so ,you must config the profile and add enviroment variable.
本文介绍如何下载并安装MySQL6.0.11-alpha版本,包括解压安装包、设置权限、初始化数据库及配置环境变量等步骤。请注意设置root用户的密码。
9428

被折叠的 条评论
为什么被折叠?



