【安装】LAMP MySQL不知到安装到哪里去了。yum install mysql-server
yum install mysql<br />yum install mysql-server<br />yum install mysql-devel
<br />[[email protected] php-5.5.13]# whereis mysql<br />mysql: /usr/bin/mysql /usr/lib64/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz<br />[[email protected] php-5.5.13]# which mysql<br />/usr/bin/mysql<br />[[email protected] php-5.5.13]# pwd<br />/home/default7/Downloads/php-5.5.13<br />[[email protected] php-5.5.13]# <br />[[email protected] php-5.5.13]# find / -name my.cnf<br />/etc/my.cnf<br /><br />[[email protected] php-5.5.13]# pwd<br />/home/default7/Downloads/php-5.5.13<br />[[email protected] php-5.5.13]# ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/share/mysql<br />
<br />checking whether to enable multibyte string support... no<br />checking whether to enable multibyte regex support... yes<br />checking whether to check multibyte regex backtrack... yes<br />checking for external libmbfl... no<br />checking for external oniguruma... no<br />checking for mcrypt support... no<br />checking for MSSQL support via FreeTDS... no<br />checking for MySQL support... yes<br />checking for specified location of the MySQL UNIX socket... no<br />configure: error: Cannot find MySQL header files under /usr/share/mysql.<br />Note that the MySQL client library is not bundled anymore!<br />
<br />[[email protected] mysql]# whereis mysql<br />mysql: /usr/bin/mysql /usr/lib64/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz<br />[[email protected] mysql]# cd /usr/share/mysql<br />[[email protected] mysql]# ls<br />charsets my-innodb-heavy-4G.cnf<br />config.huge.ini my-large.cnf<br />config.medium.ini my-medium.cnf<br />config.small.ini my-small.cnf<br />czech mysql_fix_privilege_tables.sql<br />danish mysql_system_tables_data.sql<br />dutch mysql_system_tables.sql<br />english mysql_test_data_timezone.sql<br />errmsg.txt norwegian<br />estonian norwegian-ny<br />fill_help_tables.sql polish<br />french portuguese<br />german romanian<br />greek russian<br />hungarian serbian<br />italian slovak<br />japanese spanish<br />korean swedish<br />my-huge.cnf ukrainian<br />[[email protected] mysql]# cd bin<br />bash: cd: bin: No such file or directory<br />[[email protected] mysql]# <br /><br />