NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!
To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you. If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.
Installing all prepared tables
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 !
This is done with:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h shanhu password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the ./bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
Starting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@shanhu mysql-standard-5.0.0-alpha-pc-linux-i686]# chown: ‘mysql’: 无效的用户
Starting mysqld daemon with databases from /tmp/download/mysql-standard-5.0.0-alpha-pc-linux-i686/data
040811 15:13:54 mysqld ended
看提示信息似乎没有必要再进行configure,make和make install。
于是,我进行下一步:修改密码
./bin/mysqladmin -u rootpassword 'cxzcau'
这时出来以下提示信息:
./bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
于是,我执行以下命令以运行mysql
./bin/mysqld_safe &
这时出来以下信息:
[1] 5776
[root@shanhu mysql-standard-5.0.0-alpha-pc-linux-i686]# chown: ‘mysql’: 无效的用户
Starting mysqld daemon with databases from /tmp/download/mysql-standard-5.0.0-alpha-pc-linux-i686/data
040811 15:18:12 mys命名 1命名 1qld ended