21,886
社区成员
发帖
与我相关
我的任务
分享
yum install mysql
yum install mysql-server
yum install mysql-devel
[root@localhost php-5.5.13]# whereis mysql
mysql: /usr/bin/mysql /usr/lib64/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz
[root@localhost php-5.5.13]# which mysql
/usr/bin/mysql
[root@localhost php-5.5.13]# pwd
/home/default7/Downloads/php-5.5.13
[root@localhost php-5.5.13]#
[root@localhost php-5.5.13]# find / -name my.cnf
/etc/my.cnf
[root@localhost php-5.5.13]# pwd
/home/default7/Downloads/php-5.5.13
[root@localhost php-5.5.13]# ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/share/mysql
checking whether to enable multibyte string support... no
checking whether to enable multibyte regex support... yes
checking whether to check multibyte regex backtrack... yes
checking for external libmbfl... no
checking for external oniguruma... no
checking for mcrypt support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
configure: error: Cannot find MySQL header files under /usr/share/mysql.
Note that the MySQL client library is not bundled anymore!
[root@localhost mysql]# whereis mysql
mysql: /usr/bin/mysql /usr/lib64/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz
[root@localhost mysql]# cd /usr/share/mysql
[root@localhost mysql]# ls
charsets my-innodb-heavy-4G.cnf
config.huge.ini my-large.cnf
config.medium.ini my-medium.cnf
config.small.ini my-small.cnf
czech mysql_fix_privilege_tables.sql
danish mysql_system_tables_data.sql
dutch mysql_system_tables.sql
english mysql_test_data_timezone.sql
errmsg.txt norwegian
estonian norwegian-ny
fill_help_tables.sql polish
french portuguese
german romanian
greek russian
hungarian serbian
italian slovak
japanese spanish
korean swedish
my-huge.cnf ukrainian
[root@localhost mysql]# cd bin
bash: cd: bin: No such file or directory
[root@localhost mysql]#