当前位置: 技术问答>linux和unix
mysql安装编译
来源: 互联网 发布时间:2016-02-21
本文导语: 我在Redhat9上装mysql,在编译的时候出现如下错误:烦请高手指点 [root@localhost mysql-5.0.45-linux-i686]# ./configure --sysconfdir=/etc NOTE: This is a MySQL binary distribution. It's ready to run, you don't need to configure it! To help you a b...
我在Redhat9上装mysql,在编译的时候出现如下错误:烦请高手指点
[root@localhost mysql-5.0.45-linux-i686]# ./configure --sysconfdir=/etc
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 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 !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h localhost.localdomain 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 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 on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@localhost mysql-5.0.45-linux-i686]# Starting mysqld daemon with databases from /tmp/jianbo/php/mysql-5.0.45-linux-i686/data
[root@localhost mysql-5.0.45-linux-i686]# STOPPING server from pid file /tmp/jianbo/php/mysql-5.0.45-linux-i686/data/localhost.localdomain.pid
071205 11:41:58 mysqld ended
[root@localhost mysql-5.0.45-linux-i686]# ./configure --sysconfdir=/etc
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 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 !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h localhost.localdomain 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 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 on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@localhost mysql-5.0.45-linux-i686]# Starting mysqld daemon with databases from /tmp/jianbo/php/mysql-5.0.45-linux-i686/data
[root@localhost mysql-5.0.45-linux-i686]# STOPPING server from pid file /tmp/jianbo/php/mysql-5.0.45-linux-i686/data/localhost.localdomain.pid
071205 11:41:58 mysqld ended
|
mysql官网提供了好几个版本的下载。
估计你下的是Linux (non RPM, Intel C/C++ compiled, glibc-2.3)或者Linux (non RPM packages) 这两个版本是mysql官方已经编译好的,尤其是第一个特意针对Intel的芯片做了优化的,推荐下载。下载后不需要编译,只需要建立个用户,设置下目录访问权限,简单配置一下即可。
mysql的源码版是那个Source
估计你下的是Linux (non RPM, Intel C/C++ compiled, glibc-2.3)或者Linux (non RPM packages) 这两个版本是mysql官方已经编译好的,尤其是第一个特意针对Intel的芯片做了优化的,推荐下载。下载后不需要编译,只需要建立个用户,设置下目录访问权限,简单配置一下即可。
mysql的源码版是那个Source
|
下载的是可执行文件版本,不是源文件版本,无需编译
|
不是你安装的版本不对,是这些版本中,你可以选择自己喜欢的版本。